Package org.apache.xbean.recipe
Interface Repository
- All Known Implementing Classes:
DefaultRepository
public interface Repository
-
Method Summary
-
Method Details
-
contains
Does this repository contain a object with the specified name.- Parameters:
name
- the unique name of the object instance- Returns:
- true if this repository contain a object with the specified name
-
get
Gets the object or recipe with the specified name from the repository.- Parameters:
name
- the unique name of the object instance- Returns:
- the object instance, a recipe to build the object or null
-
add
Add an object to the repository.- Parameters:
name
- the unique name of the object instanceobject
- the object instance- Throws:
ConstructionException
- if another object instance is already registered with the name
-