|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.mx.loading.LoaderRepository
DefaultLoaderRepository,
BasicLoaderRepository| Field Summary | |
protected static LoaderRepository |
instance
|
protected static Vector |
loaders
|
protected static HashMap |
nativeClassBySignature
Native signature to class map |
protected org.jboss.util.loading.Translator |
translator
|
| Constructor Summary | |
LoaderRepository()
|
|
| Method Summary | |
abstract void |
addClassLoader(ClassLoader cl)
Add a class loader to the repository |
abstract boolean |
addClassLoaderURL(ClassLoader cl,
URL url)
Update the set of URLs known to be associated with a previously added class loader. |
Class |
getCachedClass(String classname)
|
static LoaderRepository |
getDefaultLoaderRepository()
|
Vector |
getLoaders()
|
static Class |
getNativeClassForName(String className)
Return the class of a java native type |
abstract URL |
getResource(String name,
ClassLoader cl)
Find a resource URL for the given name |
abstract void |
getResources(String name,
ClassLoader cl,
List urls)
Find all resource URLs for the given name. |
org.jboss.util.loading.Translator |
getTranslator()
|
URL[] |
getURLs()
|
abstract Class |
loadClass(String className)
Load the given class from the repository. |
abstract Class |
loadClass(String name,
boolean resolve,
ClassLoader cl)
Load the given class from the repository |
Class |
loadClassBefore(ClassLoader cl,
String className)
Load the given class from the repository using classloaders before this classloader. |
abstract Class |
loadClassWithout(ClassLoader loader,
String className)
Not used. |
abstract UnifiedClassLoader |
newClassLoader(URL url,
boolean addToRepository)
Create UnifiedClassLoader and optionally add it to the repository |
abstract UnifiedClassLoader |
newClassLoader(URL url,
URL origURL,
boolean addToRepository)
Create UnifiedClassLoader and optionally add it to the repository |
abstract void |
removeClassLoader(ClassLoader cl)
Remove a cladd loader from the repository. |
void |
setTranslator(org.jboss.util.loading.Translator t)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static Vector loaders
protected static LoaderRepository instance
protected org.jboss.util.loading.Translator translator
protected static final HashMap nativeClassBySignature
| Constructor Detail |
public LoaderRepository()
| Method Detail |
public static LoaderRepository getDefaultLoaderRepository()
public Vector getLoaders()
public URL[] getURLs()
public Class getCachedClass(String classname)
public org.jboss.util.loading.Translator getTranslator()
public void setTranslator(org.jboss.util.loading.Translator t)
public abstract UnifiedClassLoader newClassLoader(URL url, boolean addToRepository) throws Exception
url - the URL to use for class loadingaddToRepository - a flag indicating if the UCL should be added to
the repository
Exceptionpublic abstract UnifiedClassLoader newClassLoader(URL url, URL origURL, boolean addToRepository) throws Exception
url - the URL to use for class loadingorigURL - an orignal URL to use as the URL for the UCL CodeSource.
This is useful when the url is a local copy that is difficult to use for
security policy writing.addToRepository - a flag indicating if the UCL should be added to
the repository
Exceptionpublic abstract Class loadClass(String className) throws ClassNotFoundException
loadClass in interface ClassLoaderRepositoryclassName -
ClassNotFoundExceptionpublic Class loadClassBefore(ClassLoader cl, String className) throws ClassNotFoundException
loadClassBefore in interface ClassLoaderRepositorycl - the classloaderclassName - the class name
ClassNotFoundException - for not foundpublic abstract Class loadClass(String name, boolean resolve, ClassLoader cl) throws ClassNotFoundException
name - resolve - cl -
ClassNotFoundExceptionpublic abstract URL getResource(String name, ClassLoader cl)
name - the resource namecl - the requesting class loader
public abstract void getResources(String name, ClassLoader cl, List urls)
name - the resource namecl - the requesting class loaderurls - a list into which the located resource URLs will be placedpublic abstract Class loadClassWithout(ClassLoader loader, String className) throws ClassNotFoundException
loadClassWithout in interface ClassLoaderRepositoryloader - className -
ClassNotFoundExceptionpublic abstract void addClassLoader(ClassLoader cl)
public abstract boolean addClassLoaderURL(ClassLoader cl, URL url)
cl - url - public abstract void removeClassLoader(ClassLoader cl)
cl - public static final Class getNativeClassForName(String className)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||