keller state - ThorbenKuck/Keller GitHub Wiki

A new approach to the State pattern

Imagine this: You have an existing business logic and you want to change it. You want to indroduce the state pattern, to fluidly transit to the next State of action. Maybe just in a way, that allows you to have a linear flow (exactly one state follows exactly one state), or to have a complex chain of states. Cyclic, semi-cyclic or linear, with keller-state, you may change you existing business logic into a state pattern without the need of implementing interfaces or handling the statemachine.

keller-state allows you to change your existing business logic into one of two state patterns. Either
with a StateContext
or
without any StateContext at all.

Bases

Keller is build on:

  • keller-core
    For basic datatypes like the Pipeline or the Value.
  • keller-di
    Required because of the Dependency Management when calling the annotated methods.