|
||||||||||
| 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(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. |
boolean |
loadedClass(java.lang.Class<?> clazz)
Determines whether the given class was loaded by this particular class space. |
| Method Detail |
|---|
java.lang.Class<?> loadClass(java.lang.String name)
throws java.lang.TypeNotPresentException
name - The class name
java.lang.TypeNotPresentExceptionClassLoader.loadClass(String)DeferredClass<?> deferLoadClass(java.lang.String name)
name - The class name
ClassLoader.loadClass(String)java.net.URL getResource(java.lang.String name)
name - The resource name
null if it wasn't foundClassLoader.getResource(String)java.util.Enumeration<java.net.URL> getResources(java.lang.String name)
name - The resource name
ClassLoader.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 directory
Bundle.findEntries(String, String, boolean)boolean loadedClass(java.lang.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 | |||||||||