Class LifeCycleBase

  • All Implemented Interfaces:
    LifeCycle

    public abstract class LifeCycleBase
    extends Object
    implements LifeCycle
    Basic implementation of a LifeCycle that checks for state violations
    Author:
    raven
    • Constructor Detail

      • LifeCycleBase

        public LifeCycleBase()
    • Method Detail

      • expectStarted

        protected void expectStarted()
        Call this method in your own of a derived class to ensure the correct state
      • start

        public final void start()
        Specified by:
        start in interface LifeCycle
      • finish

        public final void finish()
        Specified by:
        finish in interface LifeCycle
      • startActual

        protected abstract void startActual()
      • finishActual

        protected abstract void finishActual()