Package io.micronaut.context
Interface ApplicationContextConfigurer
-
- All Superinterfaces:
io.micronaut.core.order.Ordered
public interface ApplicationContextConfigurer extends io.micronaut.core.order.Ordered
An application context configurer is responsible for configuring an application context before the application/function is started. Application context configurers must be registered as services. Those services are automatically called whenever a new application context builder is created. An application context annotated withContextConfigurer
will automatically be registered as a service provider.- Since:
- 3.2
-
-
Field Summary
Fields Modifier and Type Field Description static ApplicationContextConfigurer
NO_OP
A default configurer which does nothing.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
configure(ApplicationContextBuilder builder)
Configures the application context builder.
-
-
-
Field Detail
-
NO_OP
static final ApplicationContextConfigurer NO_OP
A default configurer which does nothing.
-
-
Method Detail
-
configure
default void configure(@NonNull ApplicationContextBuilder builder)
Configures the application context builder.- Parameters:
builder
- the builder to configure
-
-