org.apache.avalon.phoenix.interfaces
Interface ClassLoaderManager
- All Known Implementing Classes:
- ContextClassLoaderManager, DefaultClassLoaderManager
- public interface ClassLoaderManager
Interface for component that creates and manages the
ClassLoader
for an Application. The specific
mechanism by which the ClassLoader
is created
is dependent on the type of Embeddor
and the
deployment format.
- Author:
- Peter Donald
ROLE
public static final String ROLE
createClassLoader
public ClassLoader createClassLoader(Configuration environment,
File source,
File baseDirectory,
File workDirectory,
String[] classPath)
throws Exception
- Create a
ClassLoader
for a specific application.
- Parameters:
environment
- the configuration "environment.xml" for the applicationsource
- 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 ClassLoader created
- Throws:
Exception
- if an error occurs
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.