当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 jmx API Documentation 英文版文档
LoaderRepositoryClassLoader (JBoss/JMX API) - JBoss 4.0.1 sp1 jmx API Documentation 英文版文档
org.jboss.mx.loading
Class LoaderRepositoryClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.jboss.util.loading.DelegatingClassLoader
org.jboss.mx.loading.LoaderRepositoryClassLoader
- public class LoaderRepositoryClassLoader
- extends org.jboss.util.loading.DelegatingClassLoader
A delegating classloader that first peeks in the loader
repository's cache.
- Version:
- $Revision: 1.4 $
- Author:
- Adrian Brock
Fields inherited from class org.jboss.util.loading.DelegatingClassLoader |
EMPTY_URL_ARRAY, standard |
Method Summary |
protected Class |
loadClass(String className,
boolean resolve)
Load a class, first peek in the loader repository cache then
ask the parent. |
Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
repository
protected LoaderRepository repository
- The loader repository
LoaderRepositoryClassLoader
public LoaderRepositoryClassLoader(ClassLoader parent,
LoaderRepository repository)
- Constructor
- Parameters:
parent
- the parent classloader, cannot be null.repository
- the loader repository, cannot be null.
LoaderRepositoryClassLoader
public LoaderRepositoryClassLoader(ClassLoader parent,
LoaderRepository repository,
URLStreamHandlerFactory factory)
- Constructor
- Parameters:
factory
- the url stream factory.
loadClass
protected Class loadClass(String className,
boolean resolve)
throws ClassNotFoundException
- Load a class, first peek in the loader repository cache then
ask the parent.
- Parameters:
className
- the class name to loadresolve
- whether to link the class
- Returns:
- the loaded class
- Throws:
ClassNotFoundException
- when the class could not be found
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.