Qi4j Runtime needs a way to bootstrap in OSGi
---------------------------------------------
Key: QI-333
URL: http://issues.ops4j.org/browse/QI-333
Project: Qi4j
Issue Type: Bug
Reporter: Niclas Hedhman
It is correct that all packages should be hidden in Qi4j Runtime, but that
means that we don't have a way to bootstrap in OSGi.
One way to do it is that the library-osgi creates an OSGi Fragment that
contains an Activator that registers a org.qi4j.bootstrap.ServiceLoader as an
OSGi service. The fragment is 'attached' to org.qi4j.core.runtime bundle. And
the bootstrap process looks like;
{code}
public void start( BundleContext context )
{
ServiceReference ref = context.getServiceReference(
ServiceLoader.class.getName() );
ServiceLoader loader = context.getService( ref );
Energy4Java qi4j = new Energy4Java( loader );
:
:
}
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev