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

Field Summary
 
Fields inherited from interface org.apache.avalon.phoenix.interfaces.ClassLoaderManager
ROLE
 
Constructor Summary
ContextClassLoaderManager()
           
 
Method Summary
 ClassLoader createClassLoader(Configuration environment, File source, File baseDirectory, File workDirectory, String[] classPath)
          Return current Context ClassLoader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextClassLoaderManager

public ContextClassLoaderManager()
Method Detail

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 - ignored
source - the source of application. (usually the name of the .sar file or else the same as baseDirectory)
baseDirectory - the base directory of application
workDirectory - the work directory of application
classPath - 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.