|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClassLoaderProvider
This interface essentially provides the functionality of a
dynamic class path. Libraries can be registered with a ClassLoaderProvider
and class loaders that look for class files in these libraries
can be obtained with the getClassLoader() method.
| Field Summary | |
|---|---|
static long |
serialVersionUID
serialization version id |
| Method Summary | |
|---|---|
ClassLoader |
getClassLoader()
Returns a class loader that looks for class files in all libraries that have been successfully registered with this ClassLoaderProvider, so far. |
boolean |
registerLibraries(File[] jarFiles)
Requests that the specified jar files be registered, so that they are in the class path of all class loaders returned by future calls to getClassLoader(). |
boolean |
registerLibrary(File jarFile)
Requests that the specified jar file be registered, so that it is in the class path of all class loaders returned by future calls to getClassLoader(). |
boolean |
registerLibraryDirectories(File[] dirs)
Requests that the all jar files in the specified directories be registered, so that they are in the class path of all class loaders returned by future calls to getClassLoader(). |
boolean |
registerLibraryDirectory(File dir)
Requests that the all jar files in the specified directory be registered, so that they are in the class path of all class loaders returned by future calls to getClassLoader(). |
| Field Detail |
|---|
static final long serialVersionUID
| Method Detail |
|---|
ClassLoader getClassLoader()
boolean registerLibrary(File jarFile)
getClassLoader().
jarFile - a jar archive with Java class files
IllegalArgumentException - if jarFile does not exist
or is not a jar fileboolean registerLibraries(File[] jarFiles)
getClassLoader().
jarFiles - an array of jar archives with Java class files
boolean registerLibraryDirectory(File dir)
getClassLoader().
dir - a directory with jar archives
dir,
for wich the request was honored.boolean registerLibraryDirectories(File[] dirs)
getClassLoader().
dirs - an array of directories with jar archives
dirs,
for wich the request was honored.
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||