public abstract class ClassLoaderFactory extends Object
Constructor and Description |
---|
ClassLoaderFactory() |
Modifier and Type | Method and Description |
---|---|
static ChainedClassLoader |
getAopClassLoaderFor(ClassLoader classLoader)
Returns the standard, extended AOP class loader based on the given class
loader.
|
static ClassLoader |
getBundleClassLoaderFor(org.osgi.framework.Bundle bundle)
Returns the wrapped class loader for the given bundle.
|
public static ChainedClassLoader getAopClassLoaderFor(ClassLoader classLoader)
classLoader
- base class loaderpublic static ClassLoader getBundleClassLoaderFor(org.osgi.framework.Bundle bundle)
getAopClassLoaderFor(ClassLoader)
but considers the BundleDelegatingClassLoader
associated with a
bundle. Namely, the implementation will check if there is a wrapping
class loader associated with the given bundle, creating one if none if
found.
Useful when creating importers/exporters programmatically.bundle
- OSGi bundleCopyright © 2006–2013. All rights reserved.