Package io.micronaut.context
Interface BeanContextConfiguration
- All Known Subinterfaces:
ApplicationContextConfiguration
- All Known Implementing Classes:
DefaultApplicationContextBuilder
,Micronaut
public interface BeanContextConfiguration
Configuration for the
BeanContext
.- Since:
- 1.1
- Author:
- graemerocher
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NonNull ClassLoader
The class loader to use.default Set<Class<? extends Annotation>>
The class patterns to trace.default @NonNull BeanResolutionTraceMode
The debug mode for bean resolution.default boolean
default boolean
Whether eager initialization ofConfigurationProperties
is enabled.default boolean
Whether eager initialization of singletons is enabled.
-
Method Details
-
getTraceMode
The debug mode for bean resolution.- Returns:
- The bean resolution debug mode.
- Since:
- 4.8.0
- See Also:
-
getTraceClasses
The class patterns to trace.- Returns:
- A set of regex patterns for tracing.
- Since:
- 4.8.0
-
isAllowEmptyProviders
default boolean isAllowEmptyProviders()- Returns:
- If a
NoSuchBeanException
should be thrown on a missingBeanProvider
orProvider
- Since:
- 3.0.0
-
getClassLoader
The class loader to use.- Returns:
- The class loader.
-
isEagerInitSingletons
default boolean isEagerInitSingletons()Whether eager initialization of singletons is enabled.- Returns:
- True if eager initialization of singletons is enabled
- Since:
- 2.0
-
isEagerInitConfiguration
default boolean isEagerInitConfiguration()Whether eager initialization ofConfigurationProperties
is enabled.- Returns:
- True if eager initialization of configuration is enabled
- Since:
- 2.0
-
getEagerInitAnnotated
- Returns:
- A set of annotated classes that should be eagerly initialized
-