|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.werken.classworlds.ClassWorld
A collection of ClassRealm
s, indexed by id.
Constructor Summary | |
ClassWorld()
Construct. |
Method Summary | |
ClassRealm |
getRealm(java.lang.String id)
Retrieve a ClassRealm by its id. |
java.util.Collection |
getRealms()
Retrieve the collection of all ClassRealm s
in this world. |
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 |
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.public java.util.Collection getRealms()
ClassRealm
s
in this world.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |