K
- key typeT
- target typepublic interface TransitionProvider<K,T> extends TransitionFactory<K,T>
TransitionFactory
where the target objects can be
mapped to and from a single String id.Modifier and Type | Method and Description |
---|---|
default <R> R |
accept(TransitionFactoryVisitor<R,T,K> vis)
Accept a
TransitionFactoryVisitor . |
java.lang.String |
getID(T target)
Get the id string for form posts from a target
|
T |
getTarget(java.lang.String id)
Find target type by id string
|
allowTransition, getSummaryContent, getTargetName, getTransition, getTransitions, lookupTransition
getContext
T getTarget(java.lang.String id)
id
- java.lang.String getID(T target)
target
- default <R> R accept(TransitionFactoryVisitor<R,T,K> vis)
TransitionFactory
TransitionFactoryVisitor
.
Any code that depends on
the particular sub-interface of TransitionFactory
should implement TransitionFactoryVisitor
this ensures it will always
handle all possible sub-classes.accept
in interface TransitionFactory<K,T>