Save This Page
Home » jboss-5.0.0.CR1-src » org.jboss.mx » loading » [javadoc | source]
org.jboss.mx.loading
public class: UnifiedClassLoader3 [javadoc | source]
java.lang.Object
   java.lang.ClassLoader
      java.security.SecureClassLoader
         java.net.URLClassLoader
            org.jboss.mx.loading.RepositoryClassLoader
               org.jboss.mx.loading.UnifiedClassLoader
                  org.jboss.mx.loading.UnifiedClassLoader3

All Implemented Interfaces:
    UnifiedClassLoader3MBean, UnifiedClassLoaderMBean, Translatable, org.jboss.classloading.spi.RealClassLoader

Direct Known Subclasses:
    MyUCL, UnifiedLoader, CacheClassLoader, UCL1, UnifiedLoader

An extension of UnifiedClassLoader that manages a thread based loading strategy to work around the locking problems associated with the VM initiated locking due to the synchronized loadClassInternal method of ClassLoader which cannot be overriden.
Fields inherited from org.jboss.mx.loading.UnifiedClassLoader:
url,  origURL
Fields inherited from org.jboss.mx.loading.RepositoryClassLoader:
repository,  unregisterTrace,  parent,  loadLock,  loadClassDepth
Constructor:
 public UnifiedClassLoader3(URL url) 
    Construct a UnifiedClassLoader without registering it to the classloader repository.
    Parameters:
    url - the single URL to load classes from.
 public UnifiedClassLoader3(URL url,
    URL origURL) 
    Construct a UnifiedClassLoader without registering it to the classloader repository.
    Parameters:
    url - the single URL to load classes from.
    origURL - the possibly null original URL from which url may be a local copy or nested jar.
 public UnifiedClassLoader3(URL url,
    URL origURL,
    LoaderRepository repository) 
    Construct a UnifiedClassLoader and associate it with the given repository.
    Parameters:
    url - The single URL to load classes from.
    origURL - the possibly null original URL from which url may be a local copy or nested jar.
    repository - the repository this classloader delegates to
 public UnifiedClassLoader3(URL url,
    URL origURL,
    ClassLoader parent,
    LoaderRepository repository) 
    Construct a UnifiedClassLoader and associate it with the given repository.
    Parameters:
    url - The single URL to load classes from.
    origURL - the possibly null original URL from which url may be a local copy or nested jar.
    parent - the parent class loader to use
    repository - the repository this classloader delegates to
Method from org.jboss.mx.loading.UnifiedClassLoader3 Summary:
toString
Methods from org.jboss.mx.loading.UnifiedClassLoader:
getObjectName,   getOrigURL,   getPermissions,   getProtectionDomain,   getURL,   loadClassImpl,   unregister
Methods from org.jboss.mx.loading.RepositoryClassLoader:
acquire,   addToClassBlackList,   addToResourceBlackList,   addURL,   attempt,   clearBlackList,   clearBlacklists,   clearClassBlackList,   clearResourceBlackList,   definePackage,   equals,   findClass,   findClassLocally,   findResources,   findResourcesLocally,   getAddedOrder,   getAllURLs,   getCachedClass,   getCachedResource,   getClasspath,   getLoaderRepository,   getObjectName,   getPackage,   getPackages,   getProtectionDomain,   getResource,   getResourceLocally,   getURL,   getURLs,   hashCode,   isClassBlackListed,   isResourceBlackListed,   isValid,   loadByteCode,   loadByteCode,   loadClass,   loadClassBefore,   loadClassImpl,   loadClassLocally,   release,   removeFromClassBlackList,   removeFromResourceBlackList,   setAddedOrder,   setRepository,   toString,   unregister
Methods from java.net.URLClassLoader:
findResource,   findResources,   getURLs,   newInstance,   newInstance
Methods from java.lang.ClassLoader:
clearAssertionStatus,   getParent,   getResource,   getResourceAsStream,   getResources,   getSystemClassLoader,   getSystemResource,   getSystemResourceAsStream,   getSystemResources,   loadClass,   setClassAssertionStatus,   setDefaultAssertionStatus,   setPackageAssertionStatus
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.mx.loading.UnifiedClassLoader3 Detail:
 public String toString() 
    Retruns a string representaion of this UCL.