public interface Repository
| Modifier and Type | Method and Description |
|---|---|
Object |
create(String name) |
Object |
create(String name,
Collection<Class<?>> proxyInterfaces) |
void |
createAll(Collection<String> names) |
Map<String,Object> |
createAll(Collection<String> names,
Collection<Class<?>> proxyInterfaces) |
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.
|
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 - org.osgi.service.blueprint.container.ComponentDefinitionException - if the recipe is already instantiatedObject create(String name) throws org.osgi.service.blueprint.container.ComponentDefinitionException
org.osgi.service.blueprint.container.ComponentDefinitionExceptionObject create(String name, Collection<Class<?>> proxyInterfaces) throws org.osgi.service.blueprint.container.ComponentDefinitionException
org.osgi.service.blueprint.container.ComponentDefinitionExceptionvoid createAll(Collection<String> names) throws org.osgi.service.blueprint.container.ComponentDefinitionException
org.osgi.service.blueprint.container.ComponentDefinitionExceptionMap<String,Object> createAll(Collection<String> names, Collection<Class<?>> proxyInterfaces) throws org.osgi.service.blueprint.container.ComponentDefinitionException
org.osgi.service.blueprint.container.ComponentDefinitionExceptionvoid destroy()
Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.