|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.ClassLoader de.smartics.properties.utils.AbstractProjectClassLoader de.smartics.properties.utils.ProjectClassLoader
public final class ProjectClassLoader
A class loader that serves classes from the given directories.
Method Summary | |
---|---|
static ProjectClassLoader |
create(ClassLoader parent, List<File> rootDirectories) Default factory method. |
static ProjectClassLoader |
create(List<File> rootDirectories) Convenience factory method using the Thread.currentThread().getContextClassLoader() . |
static ProjectClassLoader |
createFromNames(ClassLoader parent, Collection<String> rootDirectoryNames) Convenience factory method to specify the directories as String s. |
static ProjectClassLoader |
createFromNames(Collection<String> rootDirectoryNames) Convenience factory method to specify the directories as String s and using the Thread.currentThread().getContextClassLoader() . |
protected Class<?> |
findClass(String name) |
protected URL |
findResource(String name) |
protected Enumeration<URL> |
findResources(String name) |
Methods inherited from class de.smartics.properties.utils.AbstractProjectClassLoader |
---|
ensurePackageProvided, loadClassFile, loadClassFromLibrary, loadResourceFromLibrary |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ProjectClassLoader create(List<File> rootDirectories)
Thread.currentThread().getContextClassLoader()
.
rootDirectories
- the list of root directories to search for classes.
public static ProjectClassLoader createFromNames(Collection<String> rootDirectoryNames)
String
s and using the
Thread.currentThread().getContextClassLoader()
.
rootDirectoryNames
- the list of root directory names to search for classes.
public static ProjectClassLoader createFromNames(ClassLoader parent, Collection<String> rootDirectoryNames)
String
s.
parent
- the parent class loader.
rootDirectoryNames
- the list of root directory names to search for classes.
public static ProjectClassLoader create(ClassLoader parent, List<File> rootDirectories)
parent
- the parent class loader.
rootDirectories
- the list of root directories to search for classes.
protected URL findResource(String name)
findResource
in class
ClassLoader
protected Enumeration<URL> findResources(String name)
findResources
in class
ClassLoader
protected Class<?> findClass(String name) throws ClassNotFoundException
findClass
in class
ClassLoader
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |