Package org.nuxeo.runtime.osgi
Class OSGiComponentLoader
- java.lang.Object
-
- org.nuxeo.runtime.osgi.OSGiComponentLoader
-
- All Implemented Interfaces:
EventListener
,org.osgi.framework.BundleListener
,org.osgi.framework.SynchronousBundleListener
public class OSGiComponentLoader extends Object implements org.osgi.framework.SynchronousBundleListener
- Author:
- Bogdan Stefanescu, Ian Smith, Florent Guillaume
-
-
Constructor Summary
Constructors Constructor Description OSGiComponentLoader(OSGiRuntimeService runtime)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bundleChanged(org.osgi.framework.BundleEvent event)
static String
bundleEventAsString(int eventType)
Used for generating good debug info.static String
bundleStateAsString(int state)
Used for generating good debug info.void
install()
void
uninstall()
-
-
-
Constructor Detail
-
OSGiComponentLoader
public OSGiComponentLoader(OSGiRuntimeService runtime)
-
-
Method Detail
-
install
public void install()
-
uninstall
public void uninstall()
-
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event)
- Specified by:
bundleChanged
in interfaceorg.osgi.framework.BundleListener
-
bundleStateAsString
public static String bundleStateAsString(int state)
Used for generating good debug info. Convert bit vector into printable string.- Parameters:
state
- bitwise-or of UNINSTALLED, INSTALLED, RESOLVED, STARTING, STOPPING, and ACTIVE- Returns:
- printable version of bits that are on
-
bundleEventAsString
public static String bundleEventAsString(int eventType)
Used for generating good debug info. Convert event type into printable string.- Parameters:
eventType
- INSTALLED, STARTED,STOPPED, UNINSTALLED,UPDATED- Returns:
- printable version of event type
-
-