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

All Implemented Interfaces:
    UnifiedLoaderRepository2MBean, NotificationBroadcaster, ServerConstants, ClassLoaderRepository

A simple extension of UnifiedLoaderRepository2 that adds the notion of a parent UnifiedLoaderRepository. Classes and resources are loaded from child first and then the parent.
Fields inherited from org.jboss.mx.loading.UnifiedLoaderRepository2:
repositoryLock
Fields inherited from org.jboss.mx.loading.LoaderRepository:
loaders,  instance,  translator
Constructor:
 public HeirarchicalLoaderRepository2(MBeanServer server) throws InstanceNotFoundException, ReflectionException, AttributeNotFoundException, MBeanException 
 public HeirarchicalLoaderRepository2(MBeanServer server,
    ObjectName parentName) throws InstanceNotFoundException, ReflectionException, AttributeNotFoundException, MBeanException 
Method from org.jboss.mx.loading.HeirarchicalLoaderRepository2 Summary:
getResource,   getURLs,   loadClass
Methods from org.jboss.mx.loading.UnifiedLoaderRepository2:
acquire,   addClassLoader,   addClassLoaderURL,   addNotificationListener,   attempt,   findClass,   getInstance,   getNotificationInfo,   getResource,   getResources,   getURLs,   loadClass,   loadClass,   loadClassWithout,   newClassLoader,   newClassLoader,   registerClassLoader,   release,   removeClassLoader,   removeNotificationListener
Methods from org.jboss.mx.loading.LoaderRepository:
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.HeirarchicalLoaderRepository2 Detail:
 public URL getResource(String name,
    ClassLoader scl) 
    Find a resource from this repository.
 public URL[] getURLs() 
    Obtain a listing of the URL for all UnifiedClassLoaders associated with the ServiceLibraries
 public Class loadClass(String name,
    boolean resolve,
    ClassLoader scl) throws ClassNotFoundException 
    Add a class to this repository. Allows a class to be added in byte code form stored inside this repository.