|Equinox Registry and Adapter factory [message #857160]
||Thu, 26 April 2012 09:40
| GianMaria Romanato
Registered: July 2009
I am writing an OSGi application and I would like to use of both the Equinox Registry and the Equinox IAdapterManager. This implies deployment of at least equinox.common and equinox.registry. Now, both the bundles export the org.eclipse.core.runtime package and virgo refuses to wire the dependencies. I read that by design Virgo does not favour split packages and because of that encourages the use of Import-Package or, when not possible, Import-Bundle in place of the Require-Bundle.
Now, I tried in several ways but all of them failed:
- Put equinox.common, equinox.registry, equinox.util and equinox.supplement in repository/usr and Import-Package org.eclipse.core.runtime, but this fails due to the split package issue
- Put equinox.common, equinox.registry, equinox.util and equinox.supplement in repository/usr and Import-Bundle equinox.common and equinox.registry but this fails due to the split package issue
- Put equinox.common, equinox.registry, equinox.util and equinox.supplement in repository/usr and Require-Bundle equinox.common and equinox.registry but this fails at runtime and does not compile in the workspace (I am using Virgo Tools)
- Repackage equinox.common, equinox.registry, equinox.util and equinox.supplement as JARs inside a new bundle which exports all the packages provided by the four bundles, and put the new cumulative bundle in the repository/usr folder, but Virgo tools refuses to compile classes that import IExtensionRegistry stating that package "org.eclipse" does not exist and IExtensionRegistry cannot be resolved.
Can anyone give an advice?
I am using Virgo 3.0.2 but made most tests with 3.5 M6 as well without success.
I am using Eclipse 3.7.2 with the last official release of Virgo Tools.
Thanks a lot.
Developing for Virgo using PDE: http://bit.ly/1w0tTit
Global JNDI in Virgo: http://bit.ly/1to42mn
Hyperic to monitor Virgo: http://bit.ly/W1Fst9
Profile Virgo with JProfiler http://bit.ly/1FBLGCw
Powered by FUDForum
. Page generated in 0.03314 seconds