public class OsgiClassLoader extends ClassLoader
Constructor and Description |
---|
OsgiClassLoader() |
Modifier and Type | Method and Description |
---|---|
void |
addBundle(org.osgi.framework.Bundle bundle)
Adds a Bundle to the wrapped set of Bundles
|
void |
addClassLoader(ClassLoader classLoader)
Adds a ClassLoader to the wrapped set of ClassLoaders
|
void |
clear()
Clear all resources.
|
protected URL |
findResource(String name)
Load the class and break on first found match.
|
protected Enumeration<URL> |
findResources(String name)
Load the class and break on first found match.
|
protected Class<?> |
loadClass(String name,
boolean resolve)
Load the class and break on first found match.
|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
protected URL findResource(String name)
findResource
in class ClassLoader
protected Enumeration<URL> findResources(String name)
findResources
in class ClassLoader
public void addClassLoader(ClassLoader classLoader)
classLoader
- The ClassLoader to addpublic void addBundle(org.osgi.framework.Bundle bundle)
bundle
- The Bundle to addpublic void clear()
Copyright © 2013. All rights reserved.