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>>
default boolean
default boolean
Whether eager initialization ofConfigurationProperties
is enabled.default boolean
Whether eager initialization of singletons is enabled.
-
Method Details
-
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
-