public interface ClassSpace
| Modifier and Type | Method and Description |
|---|---|
DeferredClass<?> |
deferLoadClass(String name)
Defers loading of the named class from the surrounding class space.
|
Enumeration<URL> |
findEntries(String path,
String glob,
boolean recurse)
Queries local class space content for entries matching the given pattern.
|
URL |
getResource(String name)
Queries the surrounding class space for the resource with the given name.
|
Enumeration<URL> |
getResources(String name)
Queries the surrounding class space for all resources with the given name.
|
Class<?> |
loadClass(String name)
Loads the named class from the surrounding class space.
|
Class<?> loadClass(String name) throws TypeNotPresentException
name - The class nameTypeNotPresentExceptionClassLoader.loadClass(String)DeferredClass<?> deferLoadClass(String name)
name - The class nameClassLoader.loadClass(String)URL getResource(String name)
name - The resource namenull if it wasn't foundClassLoader.getResource(String)Enumeration<URL> getResources(String name)
name - The resource nameClassLoader.getResources(String)Enumeration<URL> findEntries(String path, String glob, boolean recurse)
path - The initial search directory; for example "META-INF"glob - The filename glob pattern; for example "*.xml"recurse - If true recurse into sub-directories; otherwise only search initial directoryBundle.findEntries(String, String, boolean)Copyright © 2016. All Rights Reserved.