Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » How to use the registry with straight osgi?
How to use the registry with straight osgi? [message #75060] Wed, 18 October 2006 13:07 Go to next message
Eclipse UserFriend
Originally posted by: wbeckwith.gmail.com

Are there any docs or examples that can demonstrate how to do this? I
have a project that I would normally just used the RCP runtime but
because of size contraints, I hoping we can stick to the plugin model by
using osgi and the equinox registry. I'm just at a loss as to how to
get started using them together.

Wb
Re: How to use the registry with straight osgi? [message #75105 is a reply to message #75060] Thu, 19 October 2006 18:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: simon.kaegi.cognos.com

For an example of the registry use at just the service level you might take
a look at org.eclipse.equinox.http.registry.
HTH
-Simon

"Wendell Beckwith" <wbeckwith@gmail.com> wrote in message
news:eh58ue$bg6$1@utils.eclipse.org...
> Are there any docs or examples that can demonstrate how to do this? I
> have a project that I would normally just used the RCP runtime but because
> of size contraints, I hoping we can stick to the plugin model by using
> osgi and the equinox registry. I'm just at a loss as to how to get
> started using them together.
>
> Wb
Re: How to use the registry with straight osgi? [message #75305 is a reply to message #75105] Tue, 24 October 2006 15:23 Go to previous messageGo to next message
Oleg Besedin is currently offline Oleg BesedinFriend
Messages: 41
Registered: July 2009
Member
Hi Wendell,
In addition, if you need just a "simple" extension registry you can look at
the JUnits from the org.eclipse.core.tests.internal.registry.simple package
in the org.eclipse.core.tests.runtime bundle. The "simple" registry can be
run without OSGi, but its functionality is simplified :-). For more details,
see RegistryStrategy, RegistryStrategyOSGI, and EquinoxRegistryStrategy.

To use Eclipse registry without Eclipse, you'll need
org.eclipse.equinox.registry bundle and it's dependents including
org.eclipse.core.jobs. The org.eclipse.equinox.registry, once activated,
creates default registry which can be accessed via
RegistryFactory.getRegistry() or via IExtensionRegistry service. The default
registry is shutdown on the org.eclipse.equinox.registry shutdown.

One other thing you'll need to consider is how you are going to fill the
registry. In Eclipse this is done by processing bundle events from the
update configurator (org.eclipse.update.configurator).

Thanks,
Oleg


"Simon Kaegi" <simon.kaegi@cognos.com> wrote in message
news:eh8hl8$v8g$1@utils.eclipse.org...
> For an example of the registry use at just the service level you might
> take a look at org.eclipse.equinox.http.registry.
> HTH
> -Simon
>
> "Wendell Beckwith" <wbeckwith@gmail.com> wrote in message
> news:eh58ue$bg6$1@utils.eclipse.org...
>> Are there any docs or examples that can demonstrate how to do this? I
>> have a project that I would normally just used the RCP runtime but
>> because of size contraints, I hoping we can stick to the plugin model by
>> using osgi and the equinox registry. I'm just at a loss as to how to get
>> started using them together.
>>
>> Wb
>
>
Re: How to use the registry with straight osgi? [message #75521 is a reply to message #75305] Wed, 25 October 2006 02:20 Go to previous message
Eclipse UserFriend
Originally posted by: jeff_mcaffer.REMOVE.ca.ibm.com

Is there a web/wiki page somewhere that I can read about the different
ways to use the registry?

Jeff

Oleg Besedin wrote:
> Hi Wendell,
> In addition, if you need just a "simple" extension registry you can look at
> the JUnits from the org.eclipse.core.tests.internal.registry.simple package
> in the org.eclipse.core.tests.runtime bundle. The "simple" registry can be
> run without OSGi, but its functionality is simplified :-). For more details,
> see RegistryStrategy, RegistryStrategyOSGI, and EquinoxRegistryStrategy.
>
> To use Eclipse registry without Eclipse, you'll need
> org.eclipse.equinox.registry bundle and it's dependents including
> org.eclipse.core.jobs. The org.eclipse.equinox.registry, once activated,
> creates default registry which can be accessed via
> RegistryFactory.getRegistry() or via IExtensionRegistry service. The default
> registry is shutdown on the org.eclipse.equinox.registry shutdown.
>
> One other thing you'll need to consider is how you are going to fill the
> registry. In Eclipse this is done by processing bundle events from the
> update configurator (org.eclipse.update.configurator).
>
> Thanks,
> Oleg
>
>
> "Simon Kaegi" <simon.kaegi@cognos.com> wrote in message
> news:eh8hl8$v8g$1@utils.eclipse.org...
>> For an example of the registry use at just the service level you might
>> take a look at org.eclipse.equinox.http.registry.
>> HTH
>> -Simon
>>
>> "Wendell Beckwith" <wbeckwith@gmail.com> wrote in message
>> news:eh58ue$bg6$1@utils.eclipse.org...
>>> Are there any docs or examples that can demonstrate how to do this? I
>>> have a project that I would normally just used the RCP runtime but
>>> because of size contraints, I hoping we can stick to the plugin model by
>>> using osgi and the equinox registry. I'm just at a loss as to how to get
>>> started using them together.
>>>
>>> Wb
>>
>
>
Previous Topic:OSGi does not reload previously installed bundles
Next Topic:Possible bug in resolver
Goto Forum:
  


Current Time: Sat Nov 09 03:59:55 GMT 2024

Powered by FUDForum. Page generated in 0.03030 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top