org.objectweb.jonas_lib.loader.locator.Locator Class Reference

Inherited by org.objectweb.jonas_lib.loader.locator.DirLocator, and org.objectweb.jonas_lib.loader.locator.JarFileLocator.

Inheritance diagram for org.objectweb.jonas_lib.loader.locator.Locator:

Inheritance graph
[legend]
List of all members.

Public Member Functions

abstract boolean hasFile (String path)
abstract boolean hasDirectory (String path)
abstract List listContent (String path)

Static Public Member Functions

Locator getLocator (URL url) throws IOException

Detailed Description

A Locator is used to hide System specific when looking for a file.

Author:
Guillaume Sauthier

Definition at line 39 of file Locator.java.


Member Function Documentation

Locator org.objectweb.jonas_lib.loader.locator.Locator.getLocator URL  url  )  throws IOException [static]
 

Return a new Locator in function of the URL type. an URL pointing to a jar file will return a JarFileLocator and an URL pointing to a directory file will return a DirFileLocator.

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

Definition at line 79 of file Locator.java.

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

abstract boolean org.objectweb.jonas_lib.loader.locator.Locator.hasDirectory String  path  )  [pure virtual]
 

Returns true when directory was found.

Parameters:
path the path to the directory to look up
Returns:
true when directory was found, otherwise false.

Implemented in org.objectweb.jonas_lib.loader.locator.DirLocator, and org.objectweb.jonas_lib.loader.locator.JarFileLocator.

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

abstract boolean org.objectweb.jonas_lib.loader.locator.Locator.hasFile String  path  )  [pure virtual]
 

Returns true when file was found.

Parameters:
path the path to the file to look up
Returns:
true when file was found, otherwise false.

Implemented in org.objectweb.jonas_lib.loader.locator.DirLocator, and org.objectweb.jonas_lib.loader.locator.JarFileLocator.

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

abstract List org.objectweb.jonas_lib.loader.locator.Locator.listContent String  path  )  [pure virtual]
 

Returns a list of filename stored in path.

Parameters:
path the path to the directory where looking for files
Returns:
a list of filename stored in path.

Implemented in org.objectweb.jonas_lib.loader.locator.DirLocator, and org.objectweb.jonas_lib.loader.locator.JarFileLocator.

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


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