|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.ove.utils.ObjectsRepository
A repository of the main objects used by the programm.
It is used as a repository of the different objects created that are supposed to be used (listener registering, ...) by other objects. Provide a convenient way to give the reference of objects to an another one. Rather than explicitly pass the reference to objects needed, pass the instance. The needed references are then obtains via a name that identifies the different objects.
| Constructor Summary | |
ObjectsRepository()
The Constructor. |
|
| Method Summary | |
java.lang.Object |
getObject(java.lang.String name)
Gets the object with the specified name indentifier in the repository. |
java.util.Hashtable |
getRepository()
Gets the repository. |
java.lang.Object |
putObject(java.lang.Object object,
java.lang.String name)
Puts an object with the specified name idenfier in the repository. |
java.lang.Object |
removeObject(java.lang.String name)
Remove the object with the specified name identifier from the repository. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ObjectsRepository()
| Method Detail |
public java.lang.Object putObject(java.lang.Object object,
java.lang.String name)
object - the object to add.name - the name that identifies the object.public java.lang.Object getObject(java.lang.String name)
name - the name that identifies the object.public java.lang.Object removeObject(java.lang.String name)
name - the name that identifies the object.public java.util.Hashtable getRepository()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||