org.apache.aries.util
Class AriesFrameworkUtil
java.lang.Object
org.apache.aries.util.AriesFrameworkUtil
public final class AriesFrameworkUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AriesFrameworkUtil
public AriesFrameworkUtil()
getClassLoader
public static ClassLoader getClassLoader(Bundle b)
- This method attempts to get the classloader for a bundle. It may return null if
their is no such classloader, or if it cannot obtain the classloader for the bundle.
- Parameters:
b
- the bundle whose classloader is desired.
- Returns:
- the classloader if found, or null.
getClassLoaderForced
public static ClassLoader getClassLoaderForced(Bundle b)
- This method attempts to get the classloader for a bundle. It will force the creation
of a classloader, so if no classloader exists. If the bundle is in installed state, but
cannot be resolved the null will be returned.
- Parameters:
b
- the bundle to get a classloader for
- Returns:
- the classloader.
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.