Class DefaultClassRealm
java.lang.Object
org.codehaus.classworlds.DefaultClassRealm
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultClassRealm(ClassWorld world, String id) Deprecated.DefaultClassRealm(ClassWorld world, String id, ClassLoader foreignClassLoader) Deprecated.
- 
Method SummaryModifier 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- 
DefaultClassRealmDeprecated.
- 
DefaultClassRealmDeprecated.
 
- 
- 
Method Details- 
getConstituents
- 
getParent
- 
setParentDeprecated.- Specified by:
- setParentin interface- ClassRealm
 
- 
getId
- 
getWorld
- 
importFromDeprecated.- Specified by:
- importFromin interface- ClassRealm
- Throws:
- NoSuchRealmException
 
- 
addConstituentDeprecated.- Specified by:
- addConstituentin interface- ClassRealm
 
- 
addConstituentDeprecated.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 name
- b- the class definition as a byte[]
- Throws:
- ClassNotFoundException- when class couldn't be loaded
 
- 
locateSourceRealmDeprecated.- Specified by:
- locateSourceRealmin interface- ClassRealm
 
- 
getClassLoaderDeprecated.- Specified by:
- getClassLoaderin interface- ClassRealm
 
- 
createChildRealmDeprecated.- Specified by:
- createChildRealmin interface- ClassRealm
- Throws:
- DuplicateRealmException
 
- 
loadClassDeprecated.- Specified by:
- loadClassin interface- ClassRealm
- Throws:
- ClassNotFoundException
 
- 
getResource
- 
getResourceAsStreamDeprecated.- Specified by:
- getResourceAsStreamin interface- ClassRealm
 
- 
findResourcesDeprecated.- Specified by:
- findResourcesin interface- ClassRealm
- Throws:
- IOException
 
- 
display
 
-