org.objectweb.jonas_lib.loader.factory.URLFactory Class Reference

Inherited by org.objectweb.jonas_lib.loader.factory.DirURLFactory, and org.objectweb.jonas_lib.loader.factory.JarURLFactory.

Inheritance diagram for org.objectweb.jonas_lib.loader.factory.URLFactory:

Inheritance graph
[legend]
List of all members.

Public Member Functions

abstract URL getURL (String path) throws IOException

Static Public Member Functions

URLFactory getFactory (URL url) throws IOException

Detailed Description

An URLFactory is used to create a URL from a base URL.

Author:
Guillaume Sauthier

Definition at line 37 of file URLFactory.java.


Member Function Documentation

URLFactory org.objectweb.jonas_lib.loader.factory.URLFactory.getFactory URL  url  )  throws IOException [static]
 

Return a new URLFactory in function of the URL type. an URL pointing to a jar file will return a JarURLFactory and an URL pointing to a directory file will return a DirURLFactory.

Parameters:
url the base URL
Returns:
a new URLFactory in function of the URL type.
Exceptions:
IOException when cannot find a specialized factory for the given URL.

Definition at line 61 of file URLFactory.java.

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

abstract URL org.objectweb.jonas_lib.loader.factory.URLFactory.getURL String  path  )  throws IOException [pure virtual]
 

Returns a new URL basically adding path to the base URL.

Parameters:
path the path to add to the URL.
Returns:
a new URL.
Exceptions:
IOException when created URL is invalid.

Implemented in org.objectweb.jonas_lib.loader.factory.DirURLFactory, and org.objectweb.jonas_lib.loader.factory.JarURLFactory.


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