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
- null
Recipe getRecipe(String name)
name
- null
void removeRecipe(String name)
name
- ComponentDefinitionException
- if the recipe is already instantiatedObject create(String name) throws ComponentDefinitionException
ComponentDefinitionException
Map<String,Object> createAll(Collection<String> names) throws ComponentDefinitionException
ComponentDefinitionException
void destroy()
Object getInstanceLock()
Copyright © 2013. All Rights Reserved.