站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > 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
  extended byjava.lang.ClassLoader
      extended byjava.security.SecureClassLoader
          extended byjava.net.URLClassLoader
              extended byorg.jboss.util.loading.DelegatingClassLoader
                  extended byorg.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

Field Summary
protected  LoaderRepository repository
          The loader repository
 
Fields inherited from class org.jboss.util.loading.DelegatingClassLoader
EMPTY_URL_ARRAY, standard
 
Constructor Summary
LoaderRepositoryClassLoader(ClassLoader parent, LoaderRepository repository)
          Constructor
LoaderRepositoryClassLoader(ClassLoader parent, LoaderRepository repository, URLStreamHandlerFactory factory)
          Constructor
 
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.net.URLClassLoader
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass
 
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
 

Field Detail

repository

protected LoaderRepository repository
The loader repository

Constructor Detail

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.
Method Detail

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 load
resolve - 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.