Package org.chenile.owiz.impl
Class ChainContext<InputType>
java.lang.Object
org.chenile.owiz.impl.ChainContext<InputType>
- Type Parameters:
InputType-
This class is used by
FilterChain. This is passed as part of the
context. (by classes implementing ChainContextContainer) The class allows
a Command which is called by the FilterChain to pass control to the commands that
are downstream from it. The doContinue() executes the downstream commands.
This method will be recursively called till the last command is executed in the Chain.
This context also can roll back the Commands that have already been called if
required by using the savePoint() and resumeFromSavedPoint(SavePoint)
methods.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class specifies a save point. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDesigned to be called again and again till the chain stopsvoidresumeFromSavedPoint(ChainContext.SavePoint savedPoint)