|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xbean.recipe.ExecutionContext
public abstract class ExecutionContext
| Constructor Summary | |
|---|---|
ExecutionContext()
|
|
| Method Summary | |
|---|---|
abstract void |
addObject(String name,
Object object)
Add an object to the repository. |
abstract void |
addReference(Reference reference)
Adds a reference to an object to this context. |
abstract boolean |
containsObject(String name)
Does this context contain a object with the specified name. |
abstract ClassLoader |
getClassLoader()
Gets the class loader used for loading of all classes during the life of this execution context |
static ExecutionContext |
getContext()
|
abstract Object |
getObject(String name)
Gets the object or recipe with the specified name from the repository. |
abstract LinkedList<Recipe> |
getStack()
Gets a snapshot of the current execution stack. |
abstract Map<String,List<Reference>> |
getUnresolvedRefs()
Gets the unresolved references by name. |
static boolean |
isContextSet()
|
abstract Recipe |
pop()
Removes the top recipe from the execution stack. |
abstract void |
push(Recipe recipe)
Adds a recipe to the top of the execution stack. |
static ExecutionContext |
setContext(ExecutionContext newContext)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExecutionContext()
| Method Detail |
|---|
public static boolean isContextSet()
public static ExecutionContext getContext()
public static ExecutionContext setContext(ExecutionContext newContext)
public abstract void push(Recipe recipe)
throws CircularDependencyException
recipe - the recipe to add to the stack
CircularDependencyException - if the recipe is already on the stackpublic abstract Recipe pop()
public abstract LinkedList<Recipe> getStack()
public abstract boolean containsObject(String name)
name - the unique name of the object instance
public abstract Object getObject(String name)
name - the unique name of the object instance
public abstract void addObject(String name,
Object object)
name - the unique name of the object instanceobject - the object instance
ConstructionException - if another object instance is already registered with the namepublic abstract void addReference(Reference reference)
reference - the reference to setpublic abstract Map<String,List<Reference>> getUnresolvedRefs()
public abstract ClassLoader getClassLoader()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||