| |
|
| java.lang.Object com.caucho.loader.Loader com.caucho.loader.SimpleLoader
SimpleLoader | public class SimpleLoader extends Loader (Code) | | Class loader which checks for changes in class files and automatically
picks up new jars.
|
Constructor Summary | |
public | SimpleLoader() Null constructor for the simple loader. | public | SimpleLoader(Path path) Creates the simple loader with the specified path. | public | SimpleLoader(Path path, String prefix) Creates the simple loader with the specified path and prefix. |
SimpleLoader | public SimpleLoader()(Code) | | Null constructor for the simple loader.
|
SimpleLoader | public SimpleLoader(Path path)(Code) | | Creates the simple loader with the specified path.
Parameters: path - specifying the root of the resources |
SimpleLoader | public SimpleLoader(Path path, String prefix)(Code) | | Creates the simple loader with the specified path and prefix.
Parameters: path - specifying the root of the resources Parameters: prefix - the prefix that the resources must match |
buildClassPath | protected void buildClassPath(ArrayList<String> pathList)(Code) | | Adds the class of this resource.
|
create | public static DynamicClassLoader create(ClassLoader parent, Path path, String prefix)(Code) | | Create a class loader based on the SimpleLoader
Parameters: parent - parent class loader Parameters: path - traditional classpath Parameters: prefix - the class prefix restriction the new ClassLoader |
create | public static DynamicClassLoader create(ClassLoader parent, Path path)(Code) | | Create a class loader based on the SimpleLoader
Parameters: parent - parent class loader Parameters: path - traditional classpath the new ClassLoader |
create | public static DynamicClassLoader create(Path path)(Code) | | Create a class loader based on the SimpleLoader
Parameters: path - traditional classpath the new ClassLoader |
getCodeSource | protected CodeSource getCodeSource(Path path)(Code) | | Returns the code source for the directory.
|
getPath | public Path getPath()(Code) | | Gets the resource path.
|
getPath | public Path getPath(String name)(Code) | | Given a class or resource name, returns a patch to that resource.
Parameters: name - the class or resource name. the path representing the class or resource. |
getPrefix | public String getPrefix()(Code) | | Gets the resource prefix
|
init | public void init() throws ConfigException(Code) | | Initializes the loader.
|
setPath | public void setPath(Path path)(Code) | | Sets the resource directory.
|
setPrefix | public void setPrefix(String prefix)(Code) | | Sets the resource prefix
|
toString | public String toString()(Code) | | Returns a printable representation of the loader.
|
|
|
|