Package io.micronaut.context
Interface ApplicationContextConfigurer
- All Superinterfaces:
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 with
ContextConfigurer
will automatically be registered as a service provider.- Since:
- 3.2
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ApplicationContextConfigurer
A default configurer which does nothing.Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
configure
(@NonNull ApplicationContextBuilder builder) Configures the application context builder.
-
Field Details
-
NO_OP
A default configurer which does nothing.
-
-
Method Details
-
configure
Configures the application context builder.- Parameters:
builder
- the builder to configure
-