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 Object
- implements ClassLoaderManager
Basic ClassLoaderManager that just returns current
ContextClassLoader.
- Author:
- Eung-ju Park
- See Also:
ClassLoaderManager
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextClassLoaderManager
public ContextClassLoaderManager()
createClassLoader
public ClassLoader createClassLoader(Configuration environment,
File source,
File baseDirectory,
File workDirectory,
String[] classPath)
throws 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:
Exception - if an error occurs
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.