public enum SpringbootManagementMode extends java.lang.Enum<SpringbootManagementMode>
This enum controls the level of automation in Flamingock's Spring Boot integration, ranging from fully managed execution to complete manual control.
FlamingockAutoConfiguration| Enum Constant and Description |
|---|
APPLICATION_RUNNER
Spring Boot creates, builds, and executes the Flamingock runner automatically
via Spring's
ApplicationRunner interface. |
DEFERRED
Spring Boot creates and configures the Flamingock builder, but the application
controls when execution occurs.
|
INITIALIZING_BEAN
Spring Boot creates, builds, and executes the Flamingock runner automatically
via Spring's
InitializingBean interface. |
UNMANAGED
No Flamingock beans are created by Spring Boot auto-configuration.
|
| Modifier and Type | Method and Description |
|---|---|
static SpringbootManagementMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SpringbootManagementMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpringbootManagementMode APPLICATION_RUNNER
ApplicationRunner interface.
This is the default mode. Flamingock executes after the application context is fully initialized but before the application is ready to accept traffic.
public static final SpringbootManagementMode INITIALIZING_BEAN
InitializingBean interface.
Flamingock executes during the bean initialization phase, which occurs
earlier in the lifecycle than APPLICATION_RUNNER. Use this mode
when changes must be applied before other beans complete initialization.
public static final SpringbootManagementMode DEFERRED
The builder is exposed as a Spring bean, allowing the application to
invoke builder.build().run() at the appropriate time. This mode
is ideal for testing scenarios or when execution timing must be controlled
programmatically.
public static final SpringbootManagementMode UNMANAGED
The application assumes full responsibility for creating, configuring, and executing the Flamingock runner. Use this mode when complete control over the Flamingock lifecycle is required.
public static SpringbootManagementMode[] values()
for (SpringbootManagementMode c : SpringbootManagementMode.values()) System.out.println(c);
public static SpringbootManagementMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null