|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.classworlds.ClassWorld
A collection of ClassRealms, indexed by id.
| Field Summary | |
private java.util.Map |
realms
Realms, indexed by id. |
| Constructor Summary | |
ClassWorld()
Construct. |
|
| Method Summary | |
ClassRealm |
getRealm(java.lang.String id)
Retrieve a ClassRealm by its id. |
(package private) DefaultClassRealm |
getRealmImpl(java.lang.String id)
Retrieve a ClassRealmImpl by its id. |
java.util.Collection |
getRealms()
Retrieve the collection of all ClassRealms
in this world. |
(package private) java.lang.Class |
loadClass(java.lang.String name)
Load a class. |
ClassRealm |
newRealm(java.lang.String id)
Create a new ClassRealm. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.util.Map realms
| Constructor Detail |
public ClassWorld()
| Method Detail |
public ClassRealm newRealm(java.lang.String id)
throws DuplicateRealmException
ClassRealm.
id - The realm id.
DuplicateRealmException - If this class-world already
contains a realm with the specified id.
public ClassRealm getRealm(java.lang.String id)
throws NoSuchRealmException
ClassRealm by its id.
id - The id.
NoSuchRealmException - If the id does not correspond
to any known class-realm.
DefaultClassRealm getRealmImpl(java.lang.String id)
throws NoSuchRealmException
ClassRealmImpl by its id.
id - The id.
NoSuchRealmException - If the id does not correspond
to any known class-realm.public java.util.Collection getRealms()
ClassRealms
in this world.
java.lang.Class loadClass(java.lang.String name)
throws java.lang.ClassNotFoundException
name - The name of the class to load.
java.lang.ClassNotFoundException - If the class cannot be found.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||