|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mospace.lang.MinimalClassLoaderProvider
public class MinimalClassLoaderProvider
A minimal implementation of the ClassLoaderProvider interface whose
getClassLoader method always returns the same classloader.
| Field Summary |
|---|
| Fields inherited from interface de.mospace.lang.ClassLoaderProvider |
|---|
serialVersionUID |
| Constructor Summary | |
|---|---|
MinimalClassLoaderProvider()
Contructs a new MinimalClassLoaderProvider whose getClassLoader()
method will always return the system class loader. |
|
MinimalClassLoaderProvider(ClassLoader classLoader)
Contructs a new MinimalClassLoaderProvider whose getClassLoader()
method will always return the specified class loader. |
|
| Method Summary | |
|---|---|
ClassLoader |
getClassLoader()
Returns the class loader specified when this MinimalClassLoader is instantiated. |
boolean |
registerLibraries(File[] jarFiles)
Does nothing. |
boolean |
registerLibrary(File jarFile)
Apart from possibly throwing an IllegalArgumentException a call to this method has no effect. |
boolean |
registerLibraryDirectories(File[] dirs)
Does nothing. |
boolean |
registerLibraryDirectory(File dir)
Apart from possibly throwing an IllegalArgumentException a call to this method has no effect. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MinimalClassLoaderProvider(ClassLoader classLoader)
getClassLoader()
method will always return the specified class loader.
classLoader - the class loader that will be returned by this object's
getClassLoader() methodpublic MinimalClassLoaderProvider()
getClassLoader()
method will always return the system class loader.
ClassLoader.getSystemClassLoader()| Method Detail |
|---|
public ClassLoader getClassLoader()
getClassLoader in interface ClassLoaderProviderpublic boolean registerLibrary(File jarFile)
registerLibrary in interface ClassLoaderProviderjarFile - a jar archive with Java class files
false
IllegalArgumentException - if jarFile does not exist
or is not a jar filepublic boolean registerLibraries(File[] jarFiles)
registerLibraries in interface ClassLoaderProviderjarFiles - an array of jar archives with Java class files
falsepublic boolean registerLibraryDirectory(File dir)
registerLibraryDirectory in interface ClassLoaderProviderdir - a directory with jar archives
false
IllegalArgumentException - if dir is not a directorypublic boolean registerLibraryDirectories(File[] dirs)
registerLibraryDirectories in interface ClassLoaderProviderdirs - an array o directories with jar archives
false
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||