org.apache.cocoon.components.classloader
Interface ClassLoaderManager

All Superinterfaces:
org.apache.avalon.framework.component.Component
All Known Implementing Classes:
ClassLoaderManagerImpl

public interface ClassLoaderManager
extends org.apache.avalon.framework.component.Component

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,v 1.5 2002/02/22 07:00:06 cziegeler Exp $
Author:
Ricardo Rocha

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 void addDirectory(java.io.File directoryName)
          Add a directory to the proxied class loader
 java.lang.Class loadClass(java.lang.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 java.lang.String ROLE
Method Detail

addDirectory

public void addDirectory(java.io.File directoryName)
                  throws java.io.IOException
Add a directory to the proxied class loader
Parameters:
directoryName - The repository name
Throws:
java.io.IOException - If the directory is invalid

loadClass

public java.lang.Class loadClass(java.lang.String className)
                          throws java.lang.ClassNotFoundException
Load a class through the proxied class loader
Parameters:
className - The name of the class to be loaded
Returns:
The loaded class
Throws:
java.lang.ClassNotFoundException - If the class is not found

reinstantiate

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


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.