| java.net.URLClassLoader org.objectweb.jonas_lib.loader.AbsModuleClassLoader
All known Subclasses: org.objectweb.jonas_lib.loader.SimpleWebappClassLoader, org.objectweb.jonas_lib.loader.EjbJarClassLoader, org.objectweb.jonas_lib.loader.ClientClassLoader,
AbsModuleClassLoader | abstract public class AbsModuleClassLoader extends URLClassLoader (Code) | | The AbsModuleClassLoader class is used in JOnAS
for loading web, ejbjars and client modules.
author: Guillaume Sauthier |
AbsModuleClassLoader | public AbsModuleClassLoader(URL[] modules) throws IOException(Code) | | Create a new AbsModuleClassLoader for a list of URLs.
Parameters: modules - the list of URL to be used in the ClassLoader. throws: IOException - when Initialization fails. |
AbsModuleClassLoader | public AbsModuleClassLoader(URL[] modules, ClassLoader parent) throws IOException(Code) | | Create a new AbsModuleClassLoader for a list of URLs with a specified parent loader.
Parameters: modules - the list of URL to be used in the ClassLoader. Parameters: parent - the parent ClassLoader to be used. throws: IOException - when Initialization fails. |
addContentInRepository | protected void addContentInRepository(String location) throws IOException(Code) | | Add specified location childs into the repository.
Search will be performed on the bases URLs.
Parameters: location - an entry name (for a jar) or a path name (for a directory) throws: IOException - When a directory content cannot be explored.TODO test existence is now done in AbsModuleClassLoader |
addInRepository | protected void addInRepository(String location) throws IOException(Code) | | Add specified location into the repository.
If location is found in multiple URLs of the bases, new
URLs will be added multiple times.
Parameters: location - an entry name (for a jar) or a path name (for a directory) throws: IOException - when constructed URL is malformed |
getBases | public URL[] getBases()(Code) | | Returns the bases. |
getClasspath | public String getClasspath()(Code) | | Returns a String representation of the classpath used by this classloader |
init | protected void init() throws IOException(Code) | | Base Initialization of the ClassLoader, storage of URL list.
throws: IOException - when URL pointed file is not supported (not an jar nor a directory). |
toString | public String toString()(Code) | | Returns a String representation of the AbsModuleClassLoader |
|
|