com.caucho.loader
Class PathLoader

java.lang.Object
  extended by com.caucho.loader.Loader
      extended by com.caucho.loader.PathLoader
All Implemented Interfaces:
Dependency

public class PathLoader
extends Loader
implements Dependency

Class loader which loads specific paths.


Field Summary
 
Fields inherited from class com.caucho.loader.Loader
log
 
Constructor Summary
PathLoader()
          Creates a new directory loader.
 
Method Summary
protected  ClassEntry getClassEntry(java.lang.String name, java.lang.String pathName)
          Returns the class entry.
 Path getCodePath()
           
 Path getPath(java.lang.String pathName)
          Find a given path somewhere in the classpath
 void getResources(java.util.Vector<java.net.URL> vector, java.lang.String name)
          Adds resources to the enumeration.
 void init()
          Initialize
 boolean isModified()
          Returns the modified
 boolean logModified(java.util.logging.Logger log)
          Returns the modified
 void put(java.lang.String name, Path path)
          Adds a new path.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.loader.Loader
buildClassPath, buildSourcePath, destroy, getClassLoader, getCodeSource, getResource, getResourceAsStream, isDirectoryLoader, loadClass, setLoader, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PathLoader

public PathLoader()
Creates a new directory loader.

Method Detail

init

public void init()
Initialize

Overrides:
init in class Loader

isModified

public boolean isModified()
Returns the modified

Specified by:
isModified in interface Dependency

logModified

public boolean logModified(java.util.logging.Logger log)
Returns the modified

Specified by:
logModified in interface Dependency

put

public void put(java.lang.String name,
                Path path)
Adds a new path.


getClassEntry

protected ClassEntry getClassEntry(java.lang.String name,
                                   java.lang.String pathName)
                            throws java.lang.ClassNotFoundException
Returns the class entry.

Overrides:
getClassEntry in class Loader
Parameters:
name - name of the class
Throws:
java.lang.ClassNotFoundException

getResources

public void getResources(java.util.Vector<java.net.URL> vector,
                         java.lang.String name)
Adds resources to the enumeration.

Overrides:
getResources in class Loader
name - name of the resource

getPath

public Path getPath(java.lang.String pathName)
Find a given path somewhere in the classpath

Overrides:
getPath in class Loader
Parameters:
pathName - the relative resourceName
Returns:
the matching path or null

getCodePath

public Path getCodePath()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object