Spring StateMachine 介绍

Spring Statemachine (Spring 状态机)是使用 Spring框架下的状态机概念创建的一种应用程序开发框架。它使得状态机结构层次化,简化了配置状态机的过程。

这里的状态机,不是简单的有限自动状态机,是UML状态图里面的状态机概念的具体实现。不懂状态机概念可以先百度,再回过头来看


优点:

  • Easy to use flat one level state machine for simple use cases.
  • Hierarchical state machine structure to ease complex state configuration.
  • State machine regions to provide even more complex state configurations.
  • Usage of triggers, transitions, guards and actions.
  • Type safe configuration adapter.
  • Builder pattern for easy instantiation for use outside of Spring Application context
  • Recipes for usual use cases
  • Distributed state machine based on a Zookeeper
  • State machine event listeners.
  • Spring IOC integration to associate beans with a state machine.


先祭出几个常用网站

Spring stateMachine 主页:http://projects.spring.io/spring-statemachine/

Spring stateMachine API:http://docs.spring.io/spring-statemachine/docs/1.0.1.BUILD-SNAPSHOT/api/

Spring stateMachine参考文档:http://docs.spring.io/spring-statemachine/docs/1.0.0.BUILD-SNAPSHOT/reference/htmlsingle/

Spring stateMachine源代码:https://github.com/spring-projects/spring-statemachine

Spring stateMachine StackOverflow:http://stackoverflow.com/questions/tagged/spring-statemachine






你可能感兴趣的:(Spring,StateMachine)