Class LifeCycleBase

java.lang.Object
org.aksw.commons.util.lifecycle.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
  • Field Details

  • Constructor Details

    • LifeCycleBase

      public LifeCycleBase()
  • Method Details

    • 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()