|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.osesb.processingcontext.ProcessingContext
public class ProcessingContext
ProcessingContext provides a general context to hold variables, messages, and other artifacts that are needed to accomplish a task or that are the result of some process.
For example, org.osesb.pipeline.Pipeline maintains a ProcessingContext on behalf of PipelineStages. ProcessingContext supports:
| Field Summary | |
|---|---|
protected java.util.Map |
contextMap
The main ProcessingContext Map. |
protected static java.lang.String |
contextVariableMapKey
The key used to access the contextVariable Map from contextMap. |
protected java.lang.String |
thisClassName
The full name of this class. |
| Constructor Summary | |
|---|---|
ProcessingContext()
Creates a new instance of ProcessingContext. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears the context. |
boolean |
contextVariableExists(java.lang.String name)
Returns true if a contextVariable exists. |
java.lang.Object |
getContextVariable(java.lang.String name)
Gets a contextVariable from ProcessingContext, by name. |
static void |
main(java.lang.String[] args)
main() For testing and sandboxing. |
void |
setContextVariable(java.lang.String name,
java.lang.Object value)
Sets a named, contextVariable in ProcessingContext. |
java.lang.String |
toString()
Returns the String representation of this ProcessingContext as XML text. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Map contextMap
protected static java.lang.String contextVariableMapKey
protected java.lang.String thisClassName
| Constructor Detail |
|---|
public ProcessingContext()
| Method Detail |
|---|
public boolean contextVariableExists(java.lang.String name)
name - The name of the contextVariable to test for.
public java.lang.Object getContextVariable(java.lang.String name)
name - The name of the contextVariable to get.
public void setContextVariable(java.lang.String name,
java.lang.Object value)
name - The name of the contextVariable to set.value - The value for the contextVariable.public void clear()
public java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)
args - commandline arguments
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||