|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClassSpace
Represents an abstract collection of related classes and resources.
Method Summary | |
---|---|
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. |
boolean |
loadedClass(Class<?> clazz)
Determines whether the given class was loaded by this particular class space. |
Method Detail |
---|
Class<?> loadClass(String name) throws TypeNotPresentException
name
- The class name
TypeNotPresentException
ClassLoader.loadClass(String)
DeferredClass<?> deferLoadClass(String name)
name
- The class name
ClassLoader.loadClass(String)
URL getResource(String name)
name
- The resource name
null
if it wasn't foundClassLoader.getResource(String)
Enumeration<URL> getResources(String name)
name
- The resource name
ClassLoader.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 directory
Bundle.findEntries(String, String, boolean)
boolean loadedClass(Class<?> clazz)
clazz
- The class
true
if this space loaded the class; otherwise false
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |