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
Modifier and TypeClassDescriptionstatic class
This class specifies a save point. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Designed to be called again and again till the chain stopsvoid
resumeFromSavedPoint
(ChainContext.SavePoint savedPoint)