Package io.micronaut.context
Interface BeanContextConfiguration
-
- All Known Subinterfaces:
ApplicationContextConfiguration
- All Known Implementing Classes:
DefaultApplicationContextBuilder
public interface BeanContextConfiguration
Configuration for theBeanContext
.- Since:
- 1.1
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.lang.ClassLoader
getClassLoader()
The class loader to use.default java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>>
getEagerInitAnnotated()
default boolean
isAllowEmptyProviders()
default boolean
isEagerInitConfiguration()
Whether eager initialization ofConfigurationProperties
is enabled.default boolean
isEagerInitSingletons()
Whether eager initialization of singletons is enabled.
-
-
-
Method Detail
-
isAllowEmptyProviders
default boolean isAllowEmptyProviders()
- Returns:
- If a
NoSuchBeanException
should be thrown on a missingBeanProvider
orProvider
- 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 ofConfigurationProperties
is 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
-
-