Interface Startable

All Known Subinterfaces:
BuildPersisterDecorator, Persister
All Known Implementing Classes:
CachedBuildPersisterDecorator, FileBasedPersister, XStreamBuildPersister

public interface Startable
This interface is used to denote container components that need to be started.

It contains the stop method as anything that needs to be started should also clean up when stopped.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether this is currently active.
    void
    Start the component
    void
    Stop the component and clean up any resources
  • Method Details

    • start

      void start() throws Exception
      Start the component
      Throws:
      Exception - A generic failure
    • stop

      void stop() throws Exception
      Stop the component and clean up any resources
      Throws:
      Exception - A generic failure
    • isActive

      boolean isActive()

      Indicates whether this is currently active.

      Returns:
      true if this is active, false otherwise.