public interface ClassRealm
ClassWorld.
This class most closed maps to the ClassLoader
role from Java and in facts can provide a ClassLoader
view of itself using getClassLoader().
| Modifier and Type | Method and Description |
|---|---|
void |
addConstituent(URL constituent) |
ClassRealm |
createChildRealm(String id) |
void |
display() |
Enumeration |
findResources(String name) |
ClassLoader |
getClassLoader() |
URL[] |
getConstituents() |
String |
getId() |
ClassRealm |
getParent() |
URL |
getResource(String name) |
InputStream |
getResourceAsStream(String name) |
ClassWorld |
getWorld() |
void |
importFrom(String realmId,
String pkgName) |
Class |
loadClass(String name) |
ClassRealm |
locateSourceRealm(String className) |
void |
setParent(ClassRealm classRealm) |
String getId()
ClassWorld getWorld()
void importFrom(String realmId, String pkgName) throws NoSuchRealmException
NoSuchRealmExceptionvoid addConstituent(URL constituent)
ClassRealm locateSourceRealm(String className)
void setParent(ClassRealm classRealm)
ClassRealm createChildRealm(String id) throws DuplicateRealmException
DuplicateRealmExceptionClassLoader getClassLoader()
ClassRealm getParent()
URL[] getConstituents()
Class loadClass(String name) throws ClassNotFoundException
ClassNotFoundExceptionEnumeration findResources(String name) throws IOException
IOExceptionInputStream getResourceAsStream(String name)
void display()
Copyright © 2002-2013 Codehaus. All Rights Reserved.