|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
com.sun.enterprise.admin.cli.DirectoryClassLoader
public class DirectoryClassLoader
A class loader that loads classes from all jar files in a specified directory.
| Field Summary | |
|---|---|
private static LocalStringsImpl |
strings
|
| Constructor Summary | |
|---|---|
DirectoryClassLoader(java.io.File dir,
java.lang.ClassLoader parent)
Create a DirectoryClassLoader to load from jar files in the specified directory, with the specified parent class loader. |
|
DirectoryClassLoader(java.lang.String dir,
java.lang.ClassLoader parent)
Create a DirectoryClassLoader to load from jar files in the specified directory, with the specified parent class loader. |
|
| Method Summary | |
|---|---|
private static java.net.URL[] |
getJars(java.io.File dir)
|
| Methods inherited from class java.net.URLClassLoader |
|---|
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance |
| Methods inherited from class java.security.SecureClassLoader |
|---|
defineClass, defineClass |
| Methods inherited from class java.lang.ClassLoader |
|---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final LocalStringsImpl strings
| Constructor Detail |
|---|
public DirectoryClassLoader(java.lang.String dir,
java.lang.ClassLoader parent)
throws java.io.IOException
dir - the directory of jar files to load fromparent - the parent class loader
java.io.IOException - if the directory can't be accessed
public DirectoryClassLoader(java.io.File dir,
java.lang.ClassLoader parent)
throws java.io.IOException
dir - the directory of jar files to load fromparent - the parent class loader
java.io.IOException - if the directory can't be accessed| Method Detail |
|---|
private static java.net.URL[] getJars(java.io.File dir)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||