| |
|
| java.net.URLClassLoader org.apache.cocoon.components.classloader.RepositoryClassLoader
RepositoryClassLoader | public class RepositoryClassLoader extends URLClassLoader implements LogEnabled(Code) | | A class loader with a growable list of path search directories.
BL: Changed to extend URLClassLoader for both maintenance and
compatibility reasons. It doesn't hurt that it runs quicker
now as well.
author: Ricardo Rocha author: Berin Loritsch version: $Id: RepositoryClassLoader.java 433543 2006-08-22 06:22:54Z crossley $ |
Field Summary | |
protected Logger | log |
log | protected Logger log(Code) | | The logger
|
RepositoryClassLoader | public RepositoryClassLoader()(Code) | | Create an empty new class loader.
|
RepositoryClassLoader | public RepositoryClassLoader(URL[] urls)(Code) | | Create an empty new class loader.
|
RepositoryClassLoader | public RepositoryClassLoader(URL[] urls, ClassLoader parentClassLoader)(Code) | | Create an empty new class loader.
|
RepositoryClassLoader | protected RepositoryClassLoader(Vector repositories)(Code) | | Create a class loader from a list of directories
Parameters: repositories - List of searchable directories |
RepositoryClassLoader | protected RepositoryClassLoader(Collection repositories)(Code) | | Create a class loader from a list of directories
Parameters: repositories - List of searchable directories |
addDirectory | public void addDirectory(File repository) throws IOException(Code) | | Add a directory to the list of searchable repositories. This methods ensures that no directory is specified more
than once.
Parameters: repository - The directory path throws: IOException - Non-existent, non-readable or non-directory repository |
addDirectory | public void addDirectory(String repository) throws IOException(Code) | | Add a directory to the list of searchable repositories. This methods ensures that no directory is specified more
than once.
Parameters: repository - The directory path throws: IOException - Non-existent, non-readable or non-directory repository |
addURL | public void addURL(URL url)(Code) | | Add a url to the list of searchable repositories
|
enableLogging | public void enableLogging(Logger logger)(Code) | | Provide component with a logger.
Parameters: logger - the logger |
|
|
|