Interface ClassRealm
- All Known Implementing Classes:
DefaultClassRealm
public interface ClassRealm
Autonomous sub-portion of a
ClassWorld.
This class most closed maps to the ClassLoader
role from Java and in facts can provide a ClassLoader
view of itself using getClassLoader().
- Version:
- $Id: ClassRealm.java 126 2006-01-12 04:17:51Z $
- Author:
- bob mcwhirter, Jason van Zyl
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddConstituent(URL constituent) voiddisplay()findResources(String name) URL[]getId()getResource(String name) getResourceAsStream(String name) getWorld()voidimportFrom(String realmId, String pkgName) locateSourceRealm(String className) voidsetParent(ClassRealm classRealm)
-
Method Details
-
getId
String getId() -
getWorld
ClassWorld getWorld() -
importFrom
- Throws:
NoSuchRealmException
-
addConstituent
-
locateSourceRealm
-
setParent
-
createChildRealm
- Throws:
DuplicateRealmException
-
getClassLoader
ClassLoader getClassLoader() -
getParent
ClassRealm getParent() -
getConstituents
URL[] getConstituents() -
loadClass
- Throws:
ClassNotFoundException
-
getResource
-
findResources
- Throws:
IOException
-
getResourceAsStream
-
display
void display()
-