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.
- author:
< - a href="scott.stark@jboss.org">Scott Stark
- version:
$ - Revision: 37459 $
| Constructor: |
public UnifiedClassLoader3(URL url) {
this(url, null);
}
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) {
super(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) {
this(url, origURL);
// set the repository reference
this.setRepository(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) {
super(url, origURL, parent);
// set the repository reference
this.setRepository(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.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.lang.ClassLoader: |
|---|
|
clearAssertionStatus, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus |
| Method from org.jboss.mx.loading.UnifiedClassLoader3 Detail: |
public String toString() {
StringBuffer tmp = new StringBuffer(super.toString());
tmp.setCharAt(tmp.length()-1, ',");
tmp.append("addedOrder=");
tmp.append(getAddedOrder());
tmp.append('}");
return tmp.toString();
}
Retruns a string representaion of this UCL. |