Interface ClassRealm
- All Known Implementing Classes:
ClassRealmAdapter, DefaultClassRealm
Deprecated.
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().
This is a legacy interface from Classworlds 1.x, preserved for binary compatibility.
The compiled bytecode of org.eclipse.sisu:org.eclipse.sisu.plexus references this
interface directly. Removing it breaks all Maven 3+ builds.
New code should use ClassRealm.
- Author:
- bob mcwhirter, Jason van Zyl
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddConstituent(URL constituent) Deprecated.Deprecated.voiddisplay()Deprecated.findResources(String name) Deprecated.Deprecated.URL[]Deprecated.getId()Deprecated.Deprecated.getResource(String name) Deprecated.getResourceAsStream(String name) Deprecated.getWorld()Deprecated.voidimportFrom(String realmId, String pkgName) Deprecated.Deprecated.locateSourceRealm(String className) Deprecated.voidsetParent(ClassRealm classRealm) Deprecated.
-
Method Details
-
getId
String getId()Deprecated. -
getWorld
ClassWorld getWorld()Deprecated. -
importFrom
Deprecated.- Throws:
NoSuchRealmException
-
addConstituent
Deprecated. -
locateSourceRealm
Deprecated. -
setParent
Deprecated. -
createChildRealm
Deprecated.- Throws:
DuplicateRealmException
-
getClassLoader
ClassLoader getClassLoader()Deprecated. -
getParent
ClassRealm getParent()Deprecated. -
getConstituents
URL[] getConstituents()Deprecated. -
loadClass
Deprecated.- Throws:
ClassNotFoundException
-
getResource
-
findResources
-
getResourceAsStream
Deprecated. -
display
void display()Deprecated.
-
ClassRealmfor new code. This interface must remain on the classpath for Sisu compatibility.