public class MulePluginClassLoader extends MuleArtifactClassLoader
mule-plugins, that manages shutdown listeners and has resource
releasers.FineGrainedControlClassLoader.NonCachingURLStreamHandlerFactoryshutdownListeners| Constructor and Description |
|---|
MulePluginClassLoader(String artifactId,
ArtifactDescriptor artifactDescriptor,
URL[] urls,
ClassLoader parent,
ClassLoaderLookupPolicy lookupPolicy)
Constructs a new
MulePluginClassLoader for the given URLs |
| Modifier and Type | Method and Description |
|---|---|
protected ResourceReleaser |
createResourceReleaserInstance()
Creates a
ResourceReleaser using this classloader, only used outside in unit tests. |
protected void |
doDispose() |
protected Class<?> |
loadClass(String name,
boolean resolve) |
void |
setResourceReleaserClassLocation(String resourceReleaserClassLocation) |
addShutdownListener, dispose, findInternalResource, findLocalResource, findResource, getArtifactDescriptor, getArtifactId, getClassLoader, getLocalResourceLocations, loadInternalClass, reportPossibleLeak, toStringfindLocalClass, findParentClass, getClassLoaderLookupPolicy, getResource, getResourcesaddURL, close, definePackage, findClass, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstancedefineClass, defineClassclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindLocalClass, findResourcesgetClassLoaderLookupPolicypublic MulePluginClassLoader(String artifactId, ArtifactDescriptor artifactDescriptor, URL[] urls, ClassLoader parent, ClassLoaderLookupPolicy lookupPolicy)
MulePluginClassLoader for the given URLsartifactId - artifact unique ID. Non empty.artifactDescriptor - descriptor for the artifact owning the created class loader. Non null.urls - the URLs from which to load classes and resourcesparent - the parent class loader for delegationlookupPolicy - policy used to guide the lookup process. Non nullprotected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass in class FineGrainedControlClassLoaderClassNotFoundExceptionprotected void doDispose()
doDispose in class MuleArtifactClassLoaderprotected ResourceReleaser createResourceReleaserInstance()
ResourceReleaser using this classloader, only used outside in unit tests.public void setResourceReleaserClassLocation(String resourceReleaserClassLocation)
setResourceReleaserClassLocation in class MuleArtifactClassLoaderCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.