Interface SeedInitializer


  • public interface SeedInitializer

    This interface defines methods that are called at various stages of the SeedStack JVM initialization and shutdown process. Implementations must be declared as a ServiceLoader service in META-INF/services to be detected.

    Classes implementing this interface can be annotated with Priority to specify an absolute order among them.

    A single instance of each implementation is created and using throughout the whole lifecycle.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void afterInitialization()
      Called after SeedStack initialization has been completed.
      void afterRefresh()
      Called after SeedStack refresh has been completed.
      void beforeInitialization()
      Called before SeedStack initialization.
      void onClose()
      Called at explicit SeedStack global state cleanup.
      void onInitialization​(org.seedstack.coffig.Coffig configuration)
      Called during SeedStack initialization, just after base configuration has been made available.
    • Method Detail

      • beforeInitialization

        void beforeInitialization()
        Called before SeedStack initialization.
      • onInitialization

        void onInitialization​(org.seedstack.coffig.Coffig configuration)
        Called during SeedStack initialization, just after base configuration has been made available.
        Parameters:
        configuration - the base configuration.
      • afterInitialization

        void afterInitialization()
        Called after SeedStack initialization has been completed.
      • afterRefresh

        void afterRefresh()
        Called after SeedStack refresh has been completed.
      • onClose

        void onClose()
        Called at explicit SeedStack global state cleanup.