@NoImplement public interface ArtifactClassLoader extends DisposableClassLoader, LocalResourceLocator, ClassLoaderLookupPolicyProvider
Modifier and Type | Method and Description |
---|---|
void |
addShutdownListener(ShutdownListener listener)
Adds a shutdown listener to the class loader.
|
Class<?> |
findLocalClass(String name)
Loads the class with the specified binary name if defined on this class loader.
|
URL |
findResource(String resource) |
Enumeration<URL> |
findResources(String name)
Returns an enumeration of
URL objects representing all the resources with the given name which
are local to the classloader |
<T extends ArtifactDescriptor> |
getArtifactDescriptor() |
String |
getArtifactId() |
ClassLoader |
getClassLoader()
ClassLoader is an abstract class.
|
dispose
findLocalResource
getClassLoaderLookupPolicy
String getArtifactId()
<T extends ArtifactDescriptor> T getArtifactDescriptor()
T
- the generic type of the artifact descriptor.URL findResource(String resource)
resource
- name of the resource to find.Enumeration<URL> findResources(String name) throws IOException
URL
objects representing all the resources with the given name which
are local to the classloadername
- The resource nameURL
objects for the resourcesIOException
- If I/O errors occurClass<?> findLocalClass(String name) throws ClassNotFoundException
name
- The binary name of the classClassNotFoundException
- If the class was not foundClassLoader getClassLoader()
void addShutdownListener(ShutdownListener listener)
Copyright © 2018. All rights reserved.