Annotation Type PojoFsm


  • @Documented
    @Retention(RUNTIME)
    public @interface PojoFsm
    Annotation for properties related to an FSM used by a pojo feature.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.Class<?> fsmClass  
      java.lang.Class<?> fsmCodecClass  
      java.lang.String specification  
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean sessionLifetime
      Should the state of this FSM, as used by the pojo feature, exist for the lifetime of the session.
      boolean stateless
      if true, the encoded state of the FSM will never be registered, avoiding save and load overhead
    • Element Detail

      • specification

        java.lang.String specification
      • fsmClass

        java.lang.Class<?> fsmClass
      • fsmCodecClass

        java.lang.Class<?> fsmCodecClass
      • sessionLifetime

        boolean sessionLifetime
        Should the state of this FSM, as used by the pojo feature, exist for the lifetime of the session. Multiple instances of such a pojo feature will, therefore, see the same FSM instance during the session.
        Returns:
        true, if the FSM should exist from the point the FSM is created until the session ends. false, if the FSM will exist from the point the FSM is created until the next FSM instance is created.
        Default:
        true
      • stateless

        boolean stateless
        if true, the encoded state of the FSM will never be registered, avoiding save and load overhead
        Returns:
        true, if there is no persistent data required for the FSM false, if FSM data should be stored between transactions
        Default:
        false