DefaultRepository
public interface Repository
Modifier and Type | Method | Description |
---|---|---|
void |
add(String name,
Object object) |
Add an object to the repository.
|
boolean |
contains(String name) |
Does this repository contain a object with the specified name.
|
Object |
get(String name) |
Gets the object or recipe with the specified name from the repository.
|
boolean contains(String name)
name
- the unique name of the object instanceObject get(String name)
name
- the unique name of the object instancevoid add(String name, 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.