Package io.micronaut.context
Interface BeanContextConfiguration
-
- All Known Subinterfaces:
ApplicationContextConfiguration
- All Known Implementing Classes:
DefaultApplicationContextBuilder
public interface BeanContextConfigurationConfiguration for theBeanContext.- Since:
- 1.1
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.lang.ClassLoadergetClassLoader()The class loader to use.default java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>>getEagerInitAnnotated()default booleanisAllowEmptyProviders()default booleanisEagerInitConfiguration()Whether eager initialization ofConfigurationPropertiesis enabled.default booleanisEagerInitSingletons()Whether eager initialization of singletons is enabled.
-
-
-
Method Detail
-
isAllowEmptyProviders
default boolean isAllowEmptyProviders()
- Returns:
- If a
NoSuchBeanExceptionshould be thrown on a missingBeanProviderorProvider - Since:
- 3.0.0
-
getClassLoader
@NonNull default java.lang.ClassLoader 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 ofConfigurationPropertiesis enabled.- Returns:
- True if eager initialization of configuration is enabled
- Since:
- 2.0
-
getEagerInitAnnotated
default java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getEagerInitAnnotated()
- Returns:
- A set of annotated classes that should be eagerly initialized
-
-