|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.ClassLoader | +--java.security.SecureClassLoader | +--java.net.URLClassLoader | +--org.apache.cocoon.components.classloader.RepositoryClassLoader
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.
Field Summary | |
protected org.apache.log.Logger |
log
The logger |
Constructor Summary | |
|
RepositoryClassLoader()
Create an empty new class loader. |
|
RepositoryClassLoader(java.net.URL[] urls)
Create an empty new class loader. |
|
RepositoryClassLoader(java.net.URL[] urls,
java.lang.ClassLoader parentClassLoader)
Create an empty new class loader. |
protected |
RepositoryClassLoader(java.util.Vector repositories)
Create a class loader from a list of directories |
Method Summary | |
void |
addDirectory(java.io.File repository)
Add a directory to the list of searchable repositories. |
void |
addDirectory(java.lang.String repository)
Add a directory to the list of searchable repositories. |
void |
addURL(java.net.URL url)
Add a url to the list of searchable repositories |
java.lang.Class |
defineClass(byte[] b)
Create a Class from a byte array |
void |
setLogger(org.apache.log.Logger logger)
|
Methods inherited from class java.net.URLClassLoader |
definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance |
Methods inherited from class java.security.SecureClassLoader |
defineClass |
Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.apache.log.Logger log
Constructor Detail |
public RepositoryClassLoader()
public RepositoryClassLoader(java.net.URL[] urls)
public RepositoryClassLoader(java.net.URL[] urls, java.lang.ClassLoader parentClassLoader)
protected RepositoryClassLoader(java.util.Vector repositories)
repositories
- List of searchable directoriesMethod Detail |
public void setLogger(org.apache.log.Logger logger)
setLogger
in interface org.apache.avalon.framework.logger.Loggable
public void addDirectory(java.io.File repository) throws java.io.IOException
repository
- The directory path
java.io.IOException
- Non-existent, non-readable or non-directory
repositorypublic void addDirectory(java.lang.String repository) throws java.io.IOException
repository
- The directory path
java.io.IOException
- Non-existent, non-readable or non-directory
repositorypublic void addURL(java.net.URL url)
addURL
in class java.net.URLClassLoader
public java.lang.Class defineClass(byte[] b) throws java.lang.ClassFormatError
java.lang.ClassFormatError
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |