org.apache.cocoon.components.classloader
Interface ClassLoaderManager

All Superinterfaces:
Component
All Known Implementing Classes:
ClassLoaderManagerImpl, NonStaticClassLoaderManager

public interface ClassLoaderManager
extends 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.html 1304258 2012-03-23 10:09:27Z ilgrosso $
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

static final String ROLE
Method Detail

addDirectory

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

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

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



Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.