org.objectweb.jonas_lib.loader.AbsModuleClassLoader Class Reference

Inherited by org.objectweb.jonas_lib.loader.ClientClassLoader, org.objectweb.jonas_lib.loader.EjbJarClassLoader, and org.objectweb.jonas_lib.loader.SimpleWebappClassLoader.

Inheritance diagram for org.objectweb.jonas_lib.loader.AbsModuleClassLoader:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 AbsModuleClassLoader (URL[] modules) throws IOException
 AbsModuleClassLoader (URL[] modules, ClassLoader parent) throws IOException
String toString ()
URL[] getBases ()
String getClasspath ()

Protected Member Functions

void init () throws IOException
void addInRepository (String location) throws IOException
void addContentInRepository (String location) throws IOException

Detailed Description

The AbsModuleClassLoader class is used in JOnAS for loading web, ejbjars and client modules.

Author:
Guillaume Sauthier

Definition at line 45 of file AbsModuleClassLoader.java.


Constructor & Destructor Documentation

org.objectweb.jonas_lib.loader.AbsModuleClassLoader.AbsModuleClassLoader URL[]  modules  )  throws IOException
 

Create a new AbsModuleClassLoader for a list of URLs.

Parameters:
modules the list of URL to be used in the ClassLoader.
Exceptions:
IOException when Initialization fails.

Definition at line 63 of file AbsModuleClassLoader.java.

References org.objectweb.jonas_lib.loader.AbsModuleClassLoader.init().

Here is the call graph for this function:

org.objectweb.jonas_lib.loader.AbsModuleClassLoader.AbsModuleClassLoader URL[]  modules,
ClassLoader  parent
throws IOException
 

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.
parent the parent ClassLoader to be used.
Exceptions:
IOException when Initialization fails.

Definition at line 77 of file AbsModuleClassLoader.java.

References org.objectweb.jonas_lib.loader.AbsModuleClassLoader.init().

Here is the call graph for this function:


Member Function Documentation

void org.objectweb.jonas_lib.loader.AbsModuleClassLoader.addContentInRepository String  location  )  throws IOException [protected]
 

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)
Exceptions:
IOException When a directory content cannot be explored.
TODO test existence is now done in AbsModuleClassLoader

Definition at line 129 of file AbsModuleClassLoader.java.

References org.objectweb.jonas_lib.loader.locator.Locator.listContent().

Referenced by org.objectweb.jonas_lib.loader.WebappClassLoader.init(), and org.objectweb.jonas_lib.loader.ClientClassLoader.init().

Here is the call graph for this function:

void org.objectweb.jonas_lib.loader.AbsModuleClassLoader.addInRepository String  location  )  throws IOException [protected]
 

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)
Exceptions:
IOException when constructed URL is malformed

Definition at line 109 of file AbsModuleClassLoader.java.

References org.objectweb.jonas_lib.loader.locator.Locator.hasDirectory(), and org.objectweb.jonas_lib.loader.locator.Locator.hasFile().

Referenced by org.objectweb.jonas_lib.loader.WebappClassLoader.init(), org.objectweb.jonas_lib.loader.SimpleWebappClassLoader.init(), org.objectweb.jonas_lib.loader.EjbJarClassLoader.init(), and org.objectweb.jonas_lib.loader.ClientClassLoader.init().

Here is the call graph for this function:

URL [] org.objectweb.jonas_lib.loader.AbsModuleClassLoader.getBases  ) 
 

Returns:
Returns the bases.

Definition at line 163 of file AbsModuleClassLoader.java.

Referenced by org.objectweb.jonas_lib.loader.WebappClassLoader.getBaseURL().

String org.objectweb.jonas_lib.loader.AbsModuleClassLoader.getClasspath  ) 
 

Returns:
Returns a String representation of the classpath used by this classloader

Definition at line 170 of file AbsModuleClassLoader.java.

Referenced by org.objectweb.jonas_ws.wsgen.generator.ews.EWSWsEndpointGenerator.generate(), org.objectweb.jonas_ws.wsgen.generator.ews.EWSWsClientGenerator.generate(), org.objectweb.jonas_ws.wsgen.generator.axis.AxisWsClientGenerator.generate(), and org.objectweb.jonas_lib.genclientstub.generator.Generator.generate().

void org.objectweb.jonas_lib.loader.AbsModuleClassLoader.init  )  throws IOException [protected]
 

Base Initialization of the ClassLoader, storage of URL list.

Exceptions:
IOException when URL pointed file is not supported (not an jar nor a directory).

Reimplemented in org.objectweb.jonas_lib.loader.ClientClassLoader, org.objectweb.jonas_lib.loader.EjbJarClassLoader, org.objectweb.jonas_lib.loader.SimpleWebappClassLoader, and org.objectweb.jonas_lib.loader.WebappClassLoader.

Definition at line 88 of file AbsModuleClassLoader.java.

References org.objectweb.jonas_lib.loader.factory.URLFactory.getFactory(), and org.objectweb.jonas_lib.loader.locator.Locator.getLocator().

Referenced by org.objectweb.jonas_lib.loader.AbsModuleClassLoader.AbsModuleClassLoader().

Here is the call graph for this function:

String org.objectweb.jonas_lib.loader.AbsModuleClassLoader.toString  ) 
 

Returns:
Returns a String representation of the AbsModuleClassLoader

Definition at line 142 of file AbsModuleClassLoader.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:13:05 2005 for JOnAS by  doxygen 1.3.9.1