public abstract class AbstractArtifactClassLoader extends FineGrainedControlClassLoader implements ArtifactClassLoader
GoodCitizenClassLoader.NonCachingURLStreamHandlerFactory| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
protected List<ShutdownListener> |
shutdownListeners |
appName, blocked, overrides, systemPackages| Constructor and Description |
|---|
AbstractArtifactClassLoader(URL[] urls,
ClassLoader parent) |
AbstractArtifactClassLoader(URL[] urls,
ClassLoader parent,
Set<String> overrides) |
| Modifier and Type | Method and Description |
|---|---|
void |
addShutdownListener(ShutdownListener listener)
Adds a shutdown listener to the class loader.
|
protected ResourceReleaser |
createResourceReleaserInstance() |
void |
dispose()
A workaround for http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5041014
|
URL |
findLocalResource(String resourceName)
This method finds a resource in the local environment for this artifact, if the resource is not found and the
artifact has a parent artifact then the operation is resolved by that parent, if there is no parent, the resources
is searched in the global environment.
|
protected abstract String[] |
getLocalResourceLocations() |
void |
setResourceReleaserClassLocation(String resourceReleaserClassLocation) |
findClass, findParentClass, isBlocked, isOverridden, loadClass, processOverridesaddURL, close, definePackage, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstancedefineClass, defineClassclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindResource, getArtifactName, getClassLoaderprotected org.apache.commons.logging.Log logger
protected List<ShutdownListener> shutdownListeners
public AbstractArtifactClassLoader(URL[] urls, ClassLoader parent)
public AbstractArtifactClassLoader(URL[] urls, ClassLoader parent, Set<String> overrides)
public void addShutdownListener(ShutdownListener listener)
ArtifactClassLoaderaddShutdownListener in interface ArtifactClassLoaderpublic void dispose()
GoodCitizenClassLoaderdispose in interface DisposableClassLoaderdispose in class GoodCitizenClassLoaderpublic void setResourceReleaserClassLocation(String resourceReleaserClassLocation)
protected ResourceReleaser createResourceReleaserInstance()
public URL findLocalResource(String resourceName)
LocalResourceLocatorfindLocalResource in interface LocalResourceLocatorresourceName - name of the resource to find.protected abstract String[] getLocalResourceLocations()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.