org.apache.cocoon.components.classloader
Interface ClassLoaderManager

All Known Implementing Classes:
ClassLoaderManagerImpl

public interface ClassLoaderManager

A class loader manager acting as a proxy for a single RepositoryClassLoader. This class guarantees that a single class loader instance exists so that it can be safely reinstantiated for dynamic class reloading

Version:
CVS $Id: ClassLoaderManager.java 189608 2005-06-08 17:16:44Z cziegeler $
Author:
Ricardo Rocha

Field Summary
static String ROLE
           
 
Method Summary
 void addDirectory(File directoryName)
          Add a directory to the proxied class loader
 Class loadClass(String className)
          Load a class through the proxied class loader
 void reinstantiate()
          Reinstantiate the proxied class loader to allow for class reloading
 

Field Detail

ROLE

public static final String ROLE
Method Detail

addDirectory

public void addDirectory(File directoryName)
                  throws IOException
Add a directory to the proxied class loader

Parameters:
directoryName - The repository name
Throws:
IOException - If the directory is invalid

loadClass

public Class loadClass(String className)
                throws ClassNotFoundException
Load a class through the proxied class loader

Parameters:
className - The name of the class to be loaded
Returns:
The loaded class
Throws:
ClassNotFoundException - If the class is not found

reinstantiate

public void reinstantiate()
Reinstantiate the proxied class loader to allow for class reloading



Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.