|
|||||||||
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.objectweb.jonas_lib.loader.AbsModuleClassLoader
public abstract class AbsModuleClassLoader
The AbsModuleClassLoader
class is used in JOnAS
for loading web, ejbjars and client modules.
Constructor Summary | |
---|---|
AbsModuleClassLoader(java.net.URL[] modules)
Create a new AbsModuleClassLoader for a list of URLs. |
|
AbsModuleClassLoader(java.net.URL[] modules,
java.lang.ClassLoader parent)
Create a new AbsModuleClassLoader for a list of URLs with a specified parent loader. |
Method Summary | |
---|---|
protected void |
addContentInRepository(java.lang.String location)
Add specified location childs into the repository. |
protected void |
addInRepository(java.lang.String location)
Add specified location into the repository. |
java.net.URL[] |
getBases()
|
java.lang.String |
getClasspath()
|
protected void |
init()
Base Initialization of the ClassLoader, storage of URL list. |
java.lang.String |
toString()
|
Methods inherited from class java.net.URLClassLoader |
---|
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance |
Methods inherited from class java.security.SecureClassLoader |
---|
defineClass, defineClass |
Methods inherited from class java.lang.ClassLoader |
---|
clearAssertionStatus, defineClass, 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, wait, wait, wait |
Constructor Detail |
---|
public AbsModuleClassLoader(java.net.URL[] modules) throws java.io.IOException
modules
- the list of URL to be used in the ClassLoader.
java.io.IOException
- when Initialization fails.public AbsModuleClassLoader(java.net.URL[] modules, java.lang.ClassLoader parent) throws java.io.IOException
modules
- the list of URL to be used in the ClassLoader.parent
- the parent ClassLoader to be used.
java.io.IOException
- when Initialization fails.Method Detail |
---|
protected void init() throws java.io.IOException
java.io.IOException
- when URL pointed file is not supported (not an jar nor a directory).protected void addInRepository(java.lang.String location) throws java.io.IOException
location
- an entry name (for a jar) or a path name (for a directory)
java.io.IOException
- when constructed URL is malformedprotected void addContentInRepository(java.lang.String location) throws java.io.IOException
location
- an entry name (for a jar) or a path name (for a directory)
java.io.IOException
- When a directory content cannot be explored.
TODO test existence is now done in AbsModuleClassLoaderpublic java.lang.String toString()
toString
in class java.lang.Object
public java.net.URL[] getBases()
public java.lang.String getClasspath()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |