public interface ClassSpace
| Modifier and Type | Method and Description |
|---|---|
DeferredClass<?> |
deferLoadClass(java.lang.String name)
Defers loading of the named class from the surrounding class space.
|
java.util.Enumeration<java.net.URL> |
findEntries(java.lang.String path,
java.lang.String glob,
boolean recurse)
Queries local class space content for entries matching the given pattern.
|
java.net.URL |
getResource(java.lang.String name)
Queries the surrounding class space for the resource with the given name.
|
java.util.Enumeration<java.net.URL> |
getResources(java.lang.String name)
Queries the surrounding class space for all resources with the given name.
|
java.lang.Class<?> |
loadClass(java.lang.String name)
Loads the named class from the surrounding class space.
|
java.lang.Class<?> loadClass(java.lang.String name)
throws java.lang.TypeNotPresentException
name - The class namejava.lang.TypeNotPresentExceptionClassLoader.loadClass(String)DeferredClass<?> deferLoadClass(java.lang.String name)
name - The class nameClassLoader.loadClass(String)java.net.URL getResource(java.lang.String name)
name - The resource namenull if it wasn't foundClassLoader.getResource(String)java.util.Enumeration<java.net.URL> getResources(java.lang.String name)
name - The resource nameClassLoader.getResources(String)java.util.Enumeration<java.net.URL> findEntries(java.lang.String path,
java.lang.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)