Interface LifecycleState

  • All Known Implementing Classes:
    DefaultLifecycleState

    public interface LifecycleState
    Current lifecycle state of the container.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void disposed()
      Turns the lifecycle state to completely disposed.
      void disposing()
      Turns the lifecycle state to indicate that the dispose() process is being executed on the container.
      boolean isDisposed()
      Checks if the current lifecycle is disposed.
      boolean isStarted()
      Checks if current lifecycle is started.
      boolean isStopped()
      Checks if the current lifecyle is stopped.
      void removingComponent()
      Lifecycle state for when a component is being removed.
      void starting()
      Start is normally allowed if the object is constructed or already stopped.
      void stopped()
      Lifecycle state for when stop has been completed.
      void stopping()
      Lifecycle state for when the container is being stopped.
    • Method Detail

      • removingComponent

        void removingComponent()
        Lifecycle state for when a component is being removed.
      • starting

        void starting()
        Start is normally allowed if the object is constructed or already stopped. It is not allowed if the system is already started or disposed.
      • stopping

        void stopping()
        Lifecycle state for when the container is being stopped. (Ie, right after Picocontainer.stop() has been called, but before any components are stopped.
      • stopped

        void stopped()
        Lifecycle state for when stop has been completed.
      • isStarted

        boolean isStarted()
        Checks if current lifecycle is started.
        Returns:
        true if the current container state is STARTED.
      • disposing

        void disposing()
        Turns the lifecycle state to indicate that the dispose() process is being executed on the container.
      • disposed

        void disposed()
        Turns the lifecycle state to completely disposed. Internally called after PicoContainer.dispose() is finished.
      • isDisposed

        boolean isDisposed()
        Checks if the current lifecycle is disposed.
        Returns:
        true if the current state is DISPOSED.
      • isStopped

        boolean isStopped()
        Checks if the current lifecyle is stopped.
        Returns:
        true if the current state is STOPPED;