|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xbean.recipe.ExecutionContext org.apache.xbean.recipe.DefaultExecutionContext
public class DefaultExecutionContext
Constructor Summary | |
---|---|
DefaultExecutionContext()
|
|
DefaultExecutionContext(Repository repository)
|
Method Summary | |
---|---|
void |
addObject(String name,
Object object)
Add an object to the repository. |
void |
addReference(Reference reference)
Adds a reference to an object to this context. |
boolean |
containsObject(String name)
Does this context contain a object with the specified name. |
ClassLoader |
getClassLoader()
Gets the class loader used for loading of all classes during the life of this execution context |
Object |
getObject(String name)
Gets the object or recipe with the specified name from the repository. |
Repository |
getRepository()
|
LinkedList<Recipe> |
getStack()
Gets a snapshot of the current execution stack. |
SortedMap<String,List<Reference>> |
getUnresolvedRefs()
Gets the unresolved references by name. |
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 |
setRepository(Repository repository)
|
Methods inherited from class org.apache.xbean.recipe.ExecutionContext |
---|
getContext, isContextSet, setContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultExecutionContext()
public DefaultExecutionContext(Repository repository)
Method Detail |
---|
public void push(Recipe recipe)
ExecutionContext
push
in class ExecutionContext
recipe
- the recipe to add to the stackpublic Recipe pop()
ExecutionContext
pop
in class ExecutionContext
public LinkedList<Recipe> getStack()
ExecutionContext
getStack
in class ExecutionContext
public Repository getRepository()
public void setRepository(Repository repository)
public boolean containsObject(String name)
ExecutionContext
containsObject
in class ExecutionContext
name
- the unique name of the object instance
public Object getObject(String name)
ExecutionContext
getObject
in class ExecutionContext
name
- the unique name of the object instance
public void addObject(String name, Object object)
ExecutionContext
addObject
in class ExecutionContext
name
- the unique name of the object instanceobject
- the object instancepublic void addReference(Reference reference)
ExecutionContext
addReference
in class ExecutionContext
reference
- the reference to setpublic SortedMap<String,List<Reference>> getUnresolvedRefs()
ExecutionContext
getUnresolvedRefs
in class ExecutionContext
public ClassLoader getClassLoader()
ExecutionContext
getClassLoader
in class ExecutionContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |