|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.aries.blueprint.container.BlueprintRepository
public class BlueprintRepository
The default repository implementation
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.aries.blueprint.di.ExecutionContext |
|---|
ExecutionContext.Holder |
| Constructor Summary | |
|---|---|
BlueprintRepository(ExtendedBlueprintContainer container)
|
|
| Method Summary | ||
|---|---|---|
Future<Object> |
addFullObject(String name,
Future<Object> object)
Try to add a full object and return the already registered future if available |
|
void |
addPartialObject(String name,
Object object)
|
|
boolean |
canConvert(Object value,
org.osgi.service.blueprint.container.ReifiedType type)
|
|
boolean |
containsObject(String name)
Does this context contain a object with the specified name. |
|
Object |
convert(Object value,
org.osgi.service.blueprint.container.ReifiedType type)
|
|
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()
|
|
|
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) |
|
Object |
getObject(String name)
Gets the object or recipe with the specified name from the repository. |
|
Object |
getPartialObject(String name)
|
|
Recipe |
getRecipe(String name)
Return the recipe for the given name. |
|
Class |
loadClass(String typeName)
|
|
Recipe |
pop()
Removes the top recipe from the execution stack. |
|
void |
push(Recipe recipe)
Adds a recipe to the top of the execution stack. |
|
void |
putRecipe(String name,
Recipe recipe)
|
|
void |
removePartialObject(String name)
|
|
void |
removeRecipe(String name)
Remove an uninstantiated recipe |
|
void |
validate()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlueprintRepository(ExtendedBlueprintContainer container)
| Method Detail |
|---|
public Object getInstance(String name)
Repository
getInstance in interface Repositorynullpublic Recipe getRecipe(String name)
Repository
getRecipe in interface ExecutionContextgetRecipe in interface Repositorynullpublic Set<String> getNames()
Repository
getNames in interface Repository
public void putRecipe(String name,
Recipe recipe)
putRecipe in interface Repositorypublic void removeRecipe(String name)
Repository
removeRecipe in interface Repository
public Object create(String name)
throws org.osgi.service.blueprint.container.ComponentDefinitionException
create in interface Repositoryorg.osgi.service.blueprint.container.ComponentDefinitionException
public Object create(String name,
Collection<Class<?>> proxyInterfaces)
throws org.osgi.service.blueprint.container.ComponentDefinitionException
create in interface Repositoryorg.osgi.service.blueprint.container.ComponentDefinitionException
public Map<String,Object> createAll(Collection<String> names,
Collection<Class<?>> proxyInterfaces)
throws org.osgi.service.blueprint.container.ComponentDefinitionException
createAll in interface Repositoryorg.osgi.service.blueprint.container.ComponentDefinitionException
public void createAll(Collection<String> names)
throws org.osgi.service.blueprint.container.ComponentDefinitionException
createAll in interface Repositoryorg.osgi.service.blueprint.container.ComponentDefinitionException
public <T> List<T> getAllRecipes(Class<T> clazz,
String... names)
getAllRecipes in interface Repositorypublic Set<Recipe> getAllRecipes(String... names)
getAllRecipes in interface Repositorypublic void validate()
public void destroy()
destroy in interface Repositorypublic void push(Recipe recipe)
ExecutionContext
push in interface ExecutionContextrecipe - the recipe to add to the stackpublic Recipe pop()
ExecutionContext
pop in interface ExecutionContextpublic boolean containsObject(String name)
ExecutionContext
containsObject in interface ExecutionContextname - the unique name of the object instance
public Object getObject(String name)
ExecutionContext
getObject in interface ExecutionContextname - the unique name of the object instance
public Future<Object> addFullObject(String name,
Future<Object> object)
ExecutionContext
addFullObject in interface ExecutionContext
public void addPartialObject(String name,
Object object)
addPartialObject in interface ExecutionContextpublic Object getPartialObject(String name)
getPartialObject in interface ExecutionContextpublic void removePartialObject(String name)
removePartialObject in interface ExecutionContext
public Object convert(Object value,
org.osgi.service.blueprint.container.ReifiedType type)
throws Exception
convert in interface ExecutionContextException
public boolean canConvert(Object value,
org.osgi.service.blueprint.container.ReifiedType type)
canConvert in interface ExecutionContext
public Class loadClass(String typeName)
throws ClassNotFoundException
loadClass in interface ExecutionContextClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||