Class DefaultClassRealm
java.lang.Object
org.codehaus.classworlds.DefaultClassRealm
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultClassRealm(ClassWorld world, String id) Deprecated.DefaultClassRealm(ClassWorld world, String id, ClassLoader foreignClassLoader) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConstituent(String constituent, byte[] b) Deprecated.Adds a byte[] class definition as a constituent for locating classes.voidaddConstituent(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 packageName) Deprecated.Deprecated.locateSourceRealm(String classname) Deprecated.voidsetParent(ClassRealm parent) Deprecated.
-
Constructor Details
-
DefaultClassRealm
Deprecated. -
DefaultClassRealm
Deprecated.
-
-
Method Details
-
getConstituents
-
getParent
-
setParent
Deprecated.- Specified by:
setParentin interfaceClassRealm
-
getId
-
getWorld
-
importFrom
Deprecated.- Specified by:
importFromin interfaceClassRealm- Throws:
NoSuchRealmException
-
addConstituent
Deprecated.- Specified by:
addConstituentin 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:
locateSourceRealmin interfaceClassRealm
-
getClassLoader
Deprecated.- Specified by:
getClassLoaderin interfaceClassRealm
-
createChildRealm
Deprecated.- Specified by:
createChildRealmin interfaceClassRealm- Throws:
DuplicateRealmException
-
loadClass
Deprecated.- Specified by:
loadClassin interfaceClassRealm- Throws:
ClassNotFoundException
-
getResource
-
getResourceAsStream
Deprecated.- Specified by:
getResourceAsStreamin interfaceClassRealm
-
findResources
Deprecated.- Specified by:
findResourcesin interfaceClassRealm- Throws:
IOException
-
display
-