public class DefaultRepository extends Object implements Repository
| Constructor and Description |
|---|
DefaultRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String name,
Object instance)
Add an object instance to this 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 this repository.
|
public boolean contains(String name)
contains in interface Repositoryname - the unique name of the object instancepublic Object get(String name)
get in interface Repositoryname - the unique name of the object instancepublic void add(String name, Object instance)
add in interface Repositoryname - the unique name of the instanceinstance - the instanceConstructionException - if another object instance is already registered with the nameCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.