org.apache.avalon.phoenix.components.classloader
Class ContextClassLoaderManager
java.lang.Object
|
+--org.apache.avalon.phoenix.components.classloader.ContextClassLoaderManager
- All Implemented Interfaces:
- ClassLoaderManager
- public class ContextClassLoaderManager
- extends java.lang.Object
- implements ClassLoaderManager
Basic ClassLoaderManager that just returns current
ContextClassLoader.
- Author:
- Eung-ju Park
- See Also:
ClassLoaderManager
Method Summary |
java.lang.ClassLoader |
createClassLoader(Configuration environment,
java.io.File source,
java.io.File baseDirectory,
java.io.File workDirectory,
java.lang.String[] classPath)
Return current Context ClassLoader . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextClassLoaderManager
public ContextClassLoaderManager()
createClassLoader
public java.lang.ClassLoader createClassLoader(Configuration environment,
java.io.File source,
java.io.File baseDirectory,
java.io.File workDirectory,
java.lang.String[] classPath)
throws java.lang.Exception
- Return current Context
ClassLoader
.
- Specified by:
createClassLoader
in interface ClassLoaderManager
- Parameters:
environment
- ignoredsource
- the source of application. (usually the name of the .sar file
or else the same as baseDirectory)baseDirectory
- the base directory of applicationworkDirectory
- the work directory of applicationclassPath
- the list of URLs in applications deployment
- Returns:
- the ContextClassLoader created
- Throws:
java.lang.Exception
- if an error occurs
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.