public final class AriesFrameworkUtil extends Object
Constructor and Description |
---|
AriesFrameworkUtil() |
Modifier and Type | Method and Description |
---|---|
static ClassLoader |
getClassLoader(org.osgi.framework.Bundle b)
This method attempts to get the classloader for a bundle.
|
static ClassLoader |
getClassLoaderForced(org.osgi.framework.Bundle b)
This method attempts to get the classloader for a bundle.
|
static void |
safeUnregisterService(org.osgi.framework.ServiceRegistration reg)
Safely unregister the supplied ServiceRegistration, for when you don't
care about the potential IllegalStateException and don't want
it to run wild through your code
|
public static ClassLoader getClassLoader(org.osgi.framework.Bundle b)
b
- the bundle whose classloader is desired.public static ClassLoader getClassLoaderForced(org.osgi.framework.Bundle b)
b
- the bundle to get a classloader forpublic static void safeUnregisterService(org.osgi.framework.ServiceRegistration reg)
reg
- The ServiceRegistration
, may be nullCopyright © 2014. All rights reserved.