|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
org.mule.module.launcher.application.CompositeApplicationClassLoader
public class CompositeApplicationClassLoader
Defines a classloader that delegates classes and resources resolution to a list of classloaders.
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
|---|---|
CompositeApplicationClassLoader(String appName,
List<ClassLoader> classLoaders)
|
|
| Method Summary | |
|---|---|
void |
addShutdownListener(ShutdownListener listener)
Adds a shutdown listener to the class loader. |
void |
dispose()
Gets rid of the class loader resources. |
protected String |
findLibrary(String libname)
|
protected String |
findLibrary(String libname,
ClassLoader classLoader)
|
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. |
URL |
findResource(String name)
|
String |
getAppName()
|
String |
getArtifactName()
|
ClassLoader |
getClassLoader()
ClassLoader is an abstract class. |
URL |
getResource(String name)
|
InputStream |
getResourceAsStream(String name)
|
Enumeration<URL> |
getResources(String name)
|
protected Class<?> |
loadClass(ClassLoader classLoader,
String name,
boolean resolve)
|
Class<?> |
loadClass(String name)
|
protected Class<?> |
loadClass(String name,
boolean resolve)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public CompositeApplicationClassLoader(String appName,
List<ClassLoader> classLoaders)
| Method Detail |
|---|
public String getAppName()
getAppName in interface ApplicationClassLoader
public Class<?> loadClass(String name)
throws ClassNotFoundException
loadClass in class ClassLoaderClassNotFoundException
protected Class<?> loadClass(String name,
boolean resolve)
throws ClassNotFoundException
loadClass in class ClassLoaderClassNotFoundException
protected Class<?> loadClass(ClassLoader classLoader,
String name,
boolean resolve)
throws ClassNotFoundException
ClassNotFoundExceptionpublic URL getResource(String name)
getResource in class ClassLoaderpublic InputStream getResourceAsStream(String name)
getResourceAsStream in class ClassLoaderprotected String findLibrary(String libname)
findLibrary in class ClassLoader
protected String findLibrary(String libname,
ClassLoader classLoader)
public Enumeration<URL> getResources(String name)
throws IOException
getResources in class ClassLoaderIOExceptionpublic String getArtifactName()
getArtifactName in interface ArtifactClassLoaderpublic URL findResource(String name)
findResource in interface ApplicationClassLoaderfindResource in interface ArtifactClassLoaderfindResource in class ClassLoadername - name of the resource to find.
public URL findLocalResource(String resourceName)
LocalResourceLocator
findLocalResource in interface LocalResourceLocatorresourceName - name of the resource to find.
public ClassLoader getClassLoader()
ArtifactClassLoader
getClassLoader in interface ArtifactClassLoaderpublic void dispose()
DisposableClassLoader
dispose in interface DisposableClassLoaderpublic void addShutdownListener(ShutdownListener listener)
ArtifactClassLoader
addShutdownListener in interface ArtifactClassLoader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||