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
Field Summary |
static java.lang.String |
ROLE
|
Method Summary |
java.lang.ClassLoader |
createClassLoader(Configuration environment,
java.io.File source,
java.io.File baseDirectory,
java.io.File workDirectory,
java.lang.String[] classPath)
Create a ClassLoader for a specific application. |
ROLE
public static final java.lang.String ROLE
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
- 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:
java.lang.Exception
- if an error occurs
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.