Package org.codehaus.classworlds
Class DefaultClassRealm
java.lang.Object
org.codehaus.classworlds.DefaultClassRealm
- All Implemented Interfaces:
ClassRealm
Deprecated.
-
Constructor Summary
ConstructorDescriptionDefaultClassRealm
(ClassWorld world, String id) Deprecated.DefaultClassRealm
(ClassWorld world, String id, ClassLoader foreignClassLoader) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConstituent
(String constituent, byte[] b) Deprecated.Adds a byte[] class definition as a constituent for locating classes.void
addConstituent
(URL constituent) Deprecated.Deprecated.void
display()
Deprecated.findResources
(String name) Deprecated.Deprecated.URL[]
Deprecated.getId()
Deprecated.Deprecated.getResource
(String name) Deprecated.getResourceAsStream
(String name) Deprecated.getWorld()
Deprecated.void
importFrom
(String realmId, String packageName) Deprecated.Deprecated.locateSourceRealm
(String classname) Deprecated.void
setParent
(ClassRealm parent) Deprecated.
-
Constructor Details
-
DefaultClassRealm
Deprecated. -
DefaultClassRealm
Deprecated.
-
-
Method Details
-
getConstituents
Deprecated.- Specified by:
getConstituents
in interfaceClassRealm
-
getParent
Deprecated.- Specified by:
getParent
in interfaceClassRealm
-
setParent
Deprecated.- Specified by:
setParent
in interfaceClassRealm
-
getId
Deprecated.- Specified by:
getId
in interfaceClassRealm
-
getWorld
Deprecated.- Specified by:
getWorld
in interfaceClassRealm
-
importFrom
Deprecated.- Specified by:
importFrom
in interfaceClassRealm
- Throws:
NoSuchRealmException
-
addConstituent
Deprecated.- Specified by:
addConstituent
in interfaceClassRealm
-
addConstituent
Deprecated.Adds a byte[] class definition as a constituent for locating classes. Currently uses BytesURLStreamHandler to hold a reference of the byte[] in memory. This ensures we have a unifed URL resource model for all constituents. The code to cache to disk is commented out - maybe a property to choose which method?- Parameters:
constituent
- class nameb
- the class definition as a byte[]- Throws:
ClassNotFoundException
- when class couldn't be loaded
-
locateSourceRealm
Deprecated.- Specified by:
locateSourceRealm
in interfaceClassRealm
-
getClassLoader
Deprecated.- Specified by:
getClassLoader
in interfaceClassRealm
-
createChildRealm
Deprecated.- Specified by:
createChildRealm
in interfaceClassRealm
- Throws:
DuplicateRealmException
-
loadClass
Deprecated.- Specified by:
loadClass
in interfaceClassRealm
- Throws:
ClassNotFoundException
-
getResource
Deprecated.- Specified by:
getResource
in interfaceClassRealm
-
getResourceAsStream
Deprecated.- Specified by:
getResourceAsStream
in interfaceClassRealm
-
findResources
Deprecated.- Specified by:
findResources
in interfaceClassRealm
- Throws:
IOException
-
display
public void display()Deprecated.- Specified by:
display
in interfaceClassRealm
-