DefaultRepositorypublic interface Repository
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(java.lang.String name,
java.lang.Object object) |
Add an object to the repository.
|
boolean |
contains(java.lang.String name) |
Does this repository contain a object with the specified name.
|
java.lang.Object |
get(java.lang.String name) |
Gets the object or recipe with the specified name from the repository.
|
boolean contains(java.lang.String name)
name - the unique name of the object instancejava.lang.Object get(java.lang.String name)
name - the unique name of the object instancevoid add(java.lang.String name,
java.lang.Object object)
name - the unique name of the object instanceobject - the object instanceConstructionException - if another object instance is already registered with the nameCopyright © 2005–2018. All rights reserved.