Save This Page
Home » jboss-5.0.0.CR1-src » org.jboss.mx » loading » [javadoc | source]
org.jboss.mx.loading
abstract public class: LoaderRepository [javadoc | source]
java.lang.Object
   org.jboss.mx.loading.LoaderRepository

All Implemented Interfaces:
    ServerConstants, ClassLoaderRepository

Direct Known Subclasses:
    BasicLoaderRepository, HeirarchicalLoaderRepository3, HeirarchicalLoaderRepository2, UnifiedLoaderRepository4, UnifiedLoaderRepository, UnifiedLoaderRepository2, HeirarchicalLoaderRepository4, UnifiedLoaderRepository3

Abstract base class of all loader repository implementations
Field Summary
protected static  Vector loaders     
protected static  LoaderRepository instance     
protected  Translator translator     
Method from org.jboss.mx.loading.LoaderRepository Summary:
addClassLoader,   addClassLoaderURL,   cacheLoadedClass,   clear,   compare,   getCachedClass,   getLoaders,   getNativeClassForName,   getResource,   getResources,   getTranslator,   getURLs,   loadClass,   loadClass,   loadClassBefore,   loadClassWithout,   newClassLoader,   newClassLoader,   removeClassLoader,   reverseCompare,   setTranslator
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.mx.loading.LoaderRepository Detail:
 abstract public  void addClassLoader(ClassLoader cl)
    Add a class loader to the repository
 abstract public boolean addClassLoaderURL(ClassLoader cl,
    URL url)
    Update the set of URLs known to be associated with a previously added class loader.
  void cacheLoadedClass(String name,
    Class cls,
    ClassLoader cl) 
    Add a class to the the cache
  void clear() 
 public int compare(LoaderRepository lr) 
    Compare two loader repository, by default we do no special ordering
 public Class getCachedClass(String classname) 
 public Vector getLoaders() 
    Construct the native class map
 public static final Class getNativeClassForName(String className) 
    Return the class of a java native type
 abstract public URL getResource(String name,
    ClassLoader cl)
    Find a resource URL for the given name
 abstract public  void getResources(String name,
    ClassLoader cl,
    List urls)
    Find all resource URLs for the given name. Since this typically entails an exhuastive search of the repository it can be a relatively slow operation.
 public Translator getTranslator() 
 public URL[] getURLs() 
 abstract public Class loadClass(String className) throws ClassNotFoundException
    Loads a class from the repository. This method attempts to load the class using all the classloader registered to the repository.
 abstract public Class loadClass(String name,
    boolean resolve,
    ClassLoader cl) throws ClassNotFoundException
    Load the given class from the repository
 abstract public Class loadClassBefore(ClassLoader stop,
    String className) throws ClassNotFoundException
    Loads a class from the repository, using the classloaders that were registered before the given classloader.
 abstract public Class loadClassWithout(ClassLoader loader,
    String className) throws ClassNotFoundException
    Loads a class from the repository, excluding the given classloader.
 abstract public RepositoryClassLoader newClassLoader(URL url,
    boolean addToRepository) throws Exception
    Create RepositoryClassLoader and optionally add it to the repository
 abstract public RepositoryClassLoader newClassLoader(URL url,
    URL origURL,
    boolean addToRepository) throws Exception
    Create RepositoryClassLoader and optionally add it to the repository
 abstract public  void removeClassLoader(ClassLoader cl)
    Remove a cladd loader from the repository.
 protected int reverseCompare(LoaderRepository lr) 
    Allow subclasses to override the ordering
 public  void setTranslator(Translator t)