public interface ExecutionContext
Modifier and Type | Interface and Description |
---|---|
static class |
ExecutionContext.Holder |
Modifier and Type | Method and Description |
---|---|
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 |
getObject(String name)
Gets the object or recipe with the specified name from the repository.
|
Object |
getPartialObject(String name) |
Recipe |
getRecipe(String name) |
Class |
loadClass(String className) |
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 |
removePartialObject(String name) |
void push(Recipe recipe) throws CircularDependencyException
recipe
- the recipe to add to the stackCircularDependencyException
- if the recipe is already on the stackRecipe pop()
boolean containsObject(String name)
name
- the unique name of the object instanceObject getObject(String name)
name
- the unique name of the object instanceFuture<Object> addFullObject(String name, Future<Object> object)
name
- object
- void removePartialObject(String name)
Object convert(Object value, org.osgi.service.blueprint.container.ReifiedType type) throws Exception
Exception
boolean canConvert(Object value, org.osgi.service.blueprint.container.ReifiedType type)
Class loadClass(String className) throws ClassNotFoundException
ClassNotFoundException
Copyright © 2017. All rights reserved.