public interface Repository
| Modifier and Type | Method and Description |
|---|---|
Object |
create(String name) |
Map<String,Object> |
createAll(Collection<String> names) |
void |
destroy() |
<T> List<T> |
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) |
void |
removeRecipe(String name)
Remove an uninstantiated recipe
|
Set<String> getNames()
Object getInstance(String name)
name - nullRecipe getRecipe(String name)
name - nullvoid removeRecipe(String name)
name - ComponentDefinitionException - if the recipe is already instantiatedObject create(String name) throws ComponentDefinitionException
ComponentDefinitionExceptionMap<String,Object> createAll(Collection<String> names) throws ComponentDefinitionException
ComponentDefinitionExceptionvoid destroy()
Object getInstanceLock()
Copyright © 2014. All rights reserved.