Interface IEarlyInitializationService
-
public interface IEarlyInitializationServiceInterface for Early Initialization Services. Classes implementing this interface are responsible for executing tasks before the Spring Application Context is launched.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default intgetOrder()Specifies the execution order of the service.default booleanisCriticalService()true if the service is criticalvoidprocess()Executes the early initialization service.
-
-
-
Method Detail
-
process
void process()
Executes the early initialization service. Implementing classes should provide the logic to be executed before the Spring Application Context is initialized.
-
getOrder
default int getOrder()
Specifies the execution order of the service.- Returns:
- the execution order; lower values indicate earlier execution
-
isCriticalService
default boolean isCriticalService()
true if the service is critical- Returns:
- true if the service is critical
-
-