Interface Activeable

All Known Implementing Classes:
ComponentSpaceWritable, DaemonManagerImpl, SocketLoggerAnalyticsConnectorPlugin, SocketLoggerJsonAnalyticsConnectorPlugin

public interface Activeable
Defines a contract for components that support activation and deactivation lifecycle behavior. Implementations of this interface manage the lifecycle of components by providing start and stop operations. - The start() method is invoked after the component is created and fully initialized (e.g., after dependency injection for components built via configuration). - The stop() method is invoked before the component is destroyed.
Author:
pchretien
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Initializes and activates the component.
    void
    Deactivates and prepares the component for destruction.
  • Method Details

    • start

      void start()
      Initializes and activates the component. This method is called after the component has been created and fully initialized, typically after dependency injection for components built via configuration. Implementations should perform any necessary setup or resource allocation to prepare the component for use.
    • stop

      void stop()
      Deactivates and prepares the component for destruction. This method is called before the component is stopped or destroyed. Implementations should release resources, terminate processes, or perform cleanup to ensure a graceful shutdown.