Class AbstractTransitionConfigurer<S,E>
java.lang.Object
org.springframework.statemachine.config.common.annotation.AnnotationConfigurerAdapter<TransitionsData<S,E>,StateMachineTransitionConfigurer<S,E>,StateMachineTransitionBuilder<S,E>>
org.springframework.statemachine.config.configurers.AbstractTransitionConfigurer<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Implemented Interfaces:
AnnotationConfigurer<TransitionsData<S,
E>, StateMachineTransitionBuilder<S, E>>
- Direct Known Subclasses:
DefaultExternalTransitionConfigurer
,DefaultInternalTransitionConfigurer
,DefaultLocalTransitionConfigurer
public abstract class AbstractTransitionConfigurer<S,E>
extends AnnotationConfigurerAdapter<TransitionsData<S,E>,StateMachineTransitionConfigurer<S,E>,StateMachineTransitionBuilder<S,E>>
Base class for transition configurers.
- Author:
- Janne Valkealahti
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
addActionFunction
(Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>> action) protected Collection<Function<StateContext<S,
E>, reactor.core.publisher.Mono<Void>>> getCount()
protected E
getEvent()
protected Function<StateContext<S,
E>, reactor.core.publisher.Mono<Boolean>> getGuard()
protected String
getName()
protected Long
protected SecurityRule
protected S
protected S
getState()
protected S
void
protected void
protected void
protected void
setGuardFunction
(Function<StateContext<S, E>, reactor.core.publisher.Mono<Boolean>> guard) protected void
protected void
setPeriod
(long period) protected void
setSecurityRule
(String expression) protected void
setSecurityRule
(String attributes, SecurityRule.ComparisonType match) protected void
protected void
protected void
Methods inherited from class org.springframework.statemachine.config.common.annotation.AnnotationConfigurerAdapter
addObjectPostProcessor, and, configure, getBuilder, init, isAssignable, setBuilder
-
Constructor Details
-
AbstractTransitionConfigurer
public AbstractTransitionConfigurer()
-
-
Method Details
-
getSource
-
getTarget
-
getState
-
getEvent
-
getPeriod
-
getCount
- Returns:
- trigger count
-
getActions
-
getGuard
-
getSecurityRule
-
getName
-
setSource
-
setTarget
-
setState
-
setEvent
-
setPeriod
protected void setPeriod(long period) -
setCount
- Parameters:
count
- to set how many time the trigger will be called.
-
addAction
-
addAction
-
addActionFunction
protected void addActionFunction(Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>> action) -
setGuard
-
setGuardFunction
protected void setGuardFunction(Function<StateContext<S, E>, reactor.core.publisher.Mono<Boolean>> guard) -
setSecurityRule
-
setSecurityRule
-
setName
-