|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.ClassLoader akka.osgi.BundleDelegatingClassLoader
public class BundleDelegatingClassLoader
A bundle delegating ClassLoader implementation - this will try to load classes and resources from the bundle and the bundles transitive dependencies. If there's a ClassLoader specified, that will be used as a fallback.
Constructor Summary | |
---|---|
BundleDelegatingClassLoader(org.osgi.framework.Bundle bundle,
java.lang.ClassLoader fallBackClassLoader)
|
Method Summary | |
---|---|
static BundleDelegatingClassLoader |
apply(org.osgi.framework.BundleContext context)
Create a bundle delegating ClassLoader for the bundle context's bundle |
static BundleDelegatingClassLoader |
apply(org.osgi.framework.BundleContext context,
scala.Option<java.lang.ClassLoader> fallBackCLassLoader)
|
java.lang.Class<?> |
findClass(java.lang.String name)
|
java.net.URL |
findResource(java.lang.String name)
|
java.util.Enumeration<java.net.URL> |
findResources(java.lang.String name)
|
Methods inherited from class java.lang.ClassLoader |
---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BundleDelegatingClassLoader(org.osgi.framework.Bundle bundle, java.lang.ClassLoader fallBackClassLoader)
Method Detail |
---|
public static BundleDelegatingClassLoader apply(org.osgi.framework.BundleContext context)
context
- (undocumented)
public static BundleDelegatingClassLoader apply(org.osgi.framework.BundleContext context, scala.Option<java.lang.ClassLoader> fallBackCLassLoader)
public java.lang.Class<?> findClass(java.lang.String name)
findClass
in class java.lang.ClassLoader
public java.net.URL findResource(java.lang.String name)
findResource
in class java.lang.ClassLoader
public java.util.Enumeration<java.net.URL> findResources(java.lang.String name)
findResources
in class java.lang.ClassLoader
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |