org.nuxeo.runtime.osgi
Class OSGiComponentLoader
java.lang.Object
org.nuxeo.runtime.osgi.OSGiComponentLoader
- All Implemented Interfaces:
- java.util.EventListener, org.osgi.framework.BundleListener, org.osgi.framework.SynchronousBundleListener
public class OSGiComponentLoader
- extends java.lang.Object
- implements org.osgi.framework.SynchronousBundleListener
- Author:
- Bogdan Stefanescu, Ian Smith, Florent Guillaume
Method Summary |
void |
bundleChanged(org.osgi.framework.BundleEvent event)
|
static void |
bundleDebug(java.lang.String msg,
java.lang.String name)
Prints out a debug message for debugging bundles. |
static java.lang.String |
bundleEventAsString(int eventType)
Used for generating good debug info. |
static java.lang.String |
bundleStateAsString(int state)
Used for generating good debug info. |
void |
install()
|
static boolean |
isNuxeoBundle(java.lang.String symbolicName)
|
void |
uninstall()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OSGiComponentLoader
public OSGiComponentLoader(OSGiRuntimeService runtime)
install
public void install()
uninstall
public void uninstall()
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event)
- Specified by:
bundleChanged
in interface org.osgi.framework.BundleListener
bundleStateAsString
public static java.lang.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 java.lang.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
isNuxeoBundle
public static boolean isNuxeoBundle(java.lang.String symbolicName)
bundleDebug
public static void bundleDebug(java.lang.String msg,
java.lang.String name)
- Prints out a debug message for debugging bundles.
- Parameters:
msg
- the debug message with a %s in it which will be replaced by
the component namename
- the component name
Copyright © 2010 Nuxeo SAS. All Rights Reserved.