@Deprecated public class DefaultClassRealm extends Object implements ClassRealm
Constructor and Description |
---|
DefaultClassRealm(ClassWorld world,
String id)
Deprecated.
|
DefaultClassRealm(ClassWorld world,
String id,
ClassLoader foreignClassLoader)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addConstituent(String constituent,
byte[] b)
Deprecated.
Adds a byte[] class definition as a constituent for locating classes.
|
void |
addConstituent(URL constituent)
Deprecated.
|
ClassRealm |
createChildRealm(String id)
Deprecated.
|
void |
display()
Deprecated.
|
Enumeration |
findResources(String name)
Deprecated.
|
ClassLoader |
getClassLoader()
Deprecated.
|
URL[] |
getConstituents()
Deprecated.
|
String |
getId()
Deprecated.
|
ClassRealm |
getParent()
Deprecated.
|
URL |
getResource(String name)
Deprecated.
|
InputStream |
getResourceAsStream(String name)
Deprecated.
|
ClassWorld |
getWorld()
Deprecated.
|
void |
importFrom(String realmId,
String packageName)
Deprecated.
|
Class |
loadClass(String name)
Deprecated.
|
ClassRealm |
locateSourceRealm(String classname)
Deprecated.
|
void |
setParent(ClassRealm parent)
Deprecated.
|
public DefaultClassRealm(ClassWorld world, String id)
public DefaultClassRealm(ClassWorld world, String id, ClassLoader foreignClassLoader)
public URL[] getConstituents()
getConstituents
in interface ClassRealm
public ClassRealm getParent()
getParent
in interface ClassRealm
public void setParent(ClassRealm parent)
setParent
in interface ClassRealm
public String getId()
getId
in interface ClassRealm
public ClassWorld getWorld()
getWorld
in interface ClassRealm
public void importFrom(String realmId, String packageName) throws NoSuchRealmException
importFrom
in interface ClassRealm
NoSuchRealmException
public void addConstituent(URL constituent)
addConstituent
in interface ClassRealm
public void addConstituent(String constituent, byte[] b) throws ClassNotFoundException
constituent
- class nameb
- the class definition as a byte[]ClassNotFoundException
public ClassRealm locateSourceRealm(String classname)
locateSourceRealm
in interface ClassRealm
public ClassLoader getClassLoader()
getClassLoader
in interface ClassRealm
public ClassRealm createChildRealm(String id) throws DuplicateRealmException
createChildRealm
in interface ClassRealm
DuplicateRealmException
public Class loadClass(String name) throws ClassNotFoundException
loadClass
in interface ClassRealm
ClassNotFoundException
public URL getResource(String name)
getResource
in interface ClassRealm
public InputStream getResourceAsStream(String name)
getResourceAsStream
in interface ClassRealm
public Enumeration findResources(String name) throws IOException
findResources
in interface ClassRealm
IOException
public void display()
display
in interface ClassRealm
Copyright © 2002–2014 Codehaus. All rights reserved.