Class SingletonStateMachine

  • All Implemented Interfaces:
    StateMachine

    public class SingletonStateMachine
    extends AbstractStateMachine
    implements StateMachine
    A state machine for singleton resources. Supports all states and operations.

    Please note: The singleton resource must be created outside the scope of this state machine. Once created the Form.Operation.VIEW operation is used to view the resource.

                       (0)----view()----+   +--------+
                                        |   |        |
         +---------remove()---------+   |   |      clear()
         |                          |   |   |      reset()
         |                       +--+---v---+--+     |
         |                       |             <-----+
         |       +-----view()---->  READONLY   |
         |       |               |             <-----+------+
      +--v-------+--+            +--+-------^--+     |      |
      |             |               |       |        |      |
      |    EMPTY    |            edit()  cancel()  save()   |
      |             |               |       |        |      |
      +-------------+            +--v-------+--+     |      |
                                 |             |     |      |
                                 |   EDITING   +-----+    clear()
                                 |             |            |
                                 +------+------+            |
                                        |                   |
                                        +-------------------+
     
    (0) Initial states
    • Constructor Detail

      • SingletonStateMachine

        public SingletonStateMachine()