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 String ROLE
           
 
Method Summary
 ClassLoader createClassLoader(Configuration environment, File source, File baseDirectory, File workDirectory, String[] classPath)
          Create a ClassLoader for a specific application.
 

Field Detail

ROLE

public static final String ROLE
Method Detail

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 application
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 ClassLoader created
Throws:
Exception - if an error occurs


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.