TransitionerDefinition
Annotation used to mark a class as a transitioner that should be automatically discovered and bound by KfsmModule.
Classes annotated with this annotation will be automatically discovered and bound to the appropriate Transitioner type when used with KfsmModule. This allows for automatic dependency injection of transitioners without manual binding.
Example usage:
@TransitionerDefinition
class MyTransitioner @Inject constructor(deps: MyDeps): Transitioner<MyTransition, MyValue, MyState> {
override fun transition(value: MyValue, transition: MyTransition): Result<MyValue> {
// Implementation
}
}
Content copied to clipboard