|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Repository
| Method Summary | ||
|---|---|---|
Object |
create(String name)
|
|
Map<String,Object> |
createAll(Collection<String> names)
|
|
void |
destroy()
|
|
|
getAllRecipes(Class<T> clazz,
String... names)
|
|
Set<Recipe> |
getAllRecipes(String... names)
|
|
Object |
getInstance(String name)
Return the singleton instance for the given name. |
|
Object |
getInstanceLock()
Lock that should be used to synchronized creation of singletons |
|
Set<String> |
getNames()
Returns the set of all known object names (recipes, instances or default objects) |
|
Recipe |
getRecipe(String name)
Return the recipe for the given name. |
|
void |
putRecipe(String name,
Recipe recipe)
|
|
| Method Detail |
|---|
Set<String> getNames()
Object getInstance(String name)
name -
nullRecipe getRecipe(String name)
name -
null
void putRecipe(String name,
Recipe recipe)
Object create(String name)
throws ComponentDefinitionException
ComponentDefinitionException
Map<String,Object> createAll(Collection<String> names)
throws ComponentDefinitionException
ComponentDefinitionException
<T> List<T> getAllRecipes(Class<T> clazz,
String... names)
Set<Recipe> getAllRecipes(String... names)
void destroy()
Object getInstanceLock()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||