Package org.seedstack.seed.spi
Interface SeedInitializer
-
public interface SeedInitializerThis interface defines methods that are called at various stages of the SeedStack JVM initialization and shutdown process. Implementations must be declared as a
ServiceLoaderservice in META-INF/services to be detected.Classes implementing this interface can be annotated with
Priorityto 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 voidafterInitialization()Called after SeedStack initialization has been completed.voidafterRefresh()Called after SeedStack refresh has been completed.voidbeforeInitialization()Called before SeedStack initialization.voidonClose()Called at explicit SeedStack global state cleanup.voidonInitialization(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.
-
-