T
- Target typeK
- Key typepublic class ChainedTransitionResult<T,K> extends java.lang.Object implements FormResult
FormResult
to recurse to a new transition after this one.
Note that we can pass information to the next transition by caching it in the
SessionService
to construct a sequence of forms. Care needs to be taken to remove cached
values to prevent unintended side effects.Constructor and Description |
---|
ChainedTransitionResult(AppContext conn,
java.lang.Class<? extends TransitionFactory> template,
java.lang.String tag,
T target,
K next)
Alternate constructor that performs a lookup of the
TransitionFactory
This is preferable if an instance is not already available as it can utilise
any cached copy. |
ChainedTransitionResult(TransitionFactory<K,T> provider,
T target,
K next) |
Modifier and Type | Method and Description |
---|---|
void |
accept(FormResultVisitor vis) |
boolean |
equals(java.lang.Object obj) |
TransitionFactory<K,T> |
getProvider() |
T |
getTarget() |
K |
getTransition() |
int |
hashCode() |
boolean |
useURL()
Is this a transition to a bookmarkable location.
|
public ChainedTransitionResult(TransitionFactory<K,T> provider, T target, K next)
public ChainedTransitionResult(AppContext conn, java.lang.Class<? extends TransitionFactory> template, java.lang.String tag, T target, K next)
TransitionFactory
This is preferable if an instance is not already available as it can utilise
any cached copy.conn
- template
- tag
- target
- next
- public K getTransition()
public TransitionFactory<K,T> getProvider()
public T getTarget()
public void accept(FormResultVisitor vis) throws java.lang.Exception
accept
in interface FormResult
java.lang.Exception
public boolean useURL()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object