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