KfsmModule

abstract class KfsmModule<ID, V : Value<ID, V, S>, S : State<ID, V, S>>(types: KfsmModule.Companion.KfsmMachineTypes<ID, V, S>, basePackage: String? = null) : AbstractModule

Base Guice module for KFSM integration that automatically discovers and binds transitions.

This module scans the specified package for classes annotated with TransitionDefinition and binds them to a set of transitions that can be injected into the StateMachine. If no package is specified, it will scan the package of the concrete module class.

Parameters

ID

The type of the ID for the value

V

The type of value being managed by the state machine

S

The type of state, must extend State

Constructors

Link copied to clipboard
constructor(types: KfsmModule.Companion.KfsmMachineTypes<ID, V, S>, basePackage: String? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
override fun configure(p0: Binder)