Package io.micronaut.context
Interface ApplicationContextConfiguration
-
- All Superinterfaces:
BeanContextConfiguration
- All Known Implementing Classes:
DefaultApplicationContextBuilder
public interface ApplicationContextConfiguration extends BeanContextConfiguration
An interface for configuring an application context.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default io.micronaut.core.convert.ConversionService<?>
getConversionService()
The default conversion service to use.default java.util.Optional<java.lang.Boolean>
getDeduceEnvironments()
default java.util.List<java.lang.String>
getDefaultEnvironments()
java.util.List<java.lang.String>
getEnvironments()
default java.util.List<java.lang.String>
getEnvironmentVariableExcludes()
default java.util.List<java.lang.String>
getEnvironmentVariableIncludes()
default java.util.List<java.lang.String>
getOverrideConfigLocations()
The config locations.default io.micronaut.core.io.scan.ClassPathResourceLoader
getResourceLoader()
The class path resource loader to use.default boolean
isBannerEnabled()
The banner is enabled by default.default java.lang.Boolean
isBootstrapEnvironmentEnabled()
default boolean
isEnableDefaultPropertySources()
Whether to load the default set of property sources.default boolean
isEnvironmentPropertySource()
-
Methods inherited from interface io.micronaut.context.BeanContextConfiguration
getClassLoader, getEagerInitAnnotated, isAllowEmptyProviders, isEagerInitConfiguration, isEagerInitSingletons
-
-
-
-
Method Detail
-
getEnvironments
@NonNull java.util.List<java.lang.String> getEnvironments()
- Returns:
- The environment names
-
getDeduceEnvironments
default java.util.Optional<java.lang.Boolean> getDeduceEnvironments()
- Returns:
- True if the environments should be deduced
-
getDefaultEnvironments
default java.util.List<java.lang.String> getDefaultEnvironments()
- Returns:
- The default environments to be applied if no other environments are explicitly specified or deduced.
-
isEnableDefaultPropertySources
default boolean isEnableDefaultPropertySources()
Whether to load the default set of property sources.- Returns:
- Returns
true
if the default set of property sources should be loaded. - Since:
- 3.7.0
-
isEnvironmentPropertySource
default boolean isEnvironmentPropertySource()
- Returns:
- True if environment variables should contribute to configuration
-
getEnvironmentVariableIncludes
@Nullable default java.util.List<java.lang.String> getEnvironmentVariableIncludes()
- Returns:
- The environment variables to include in configuration
-
getEnvironmentVariableExcludes
@Nullable default java.util.List<java.lang.String> getEnvironmentVariableExcludes()
- Returns:
- The environment variables to exclude from configuration
-
getConversionService
@NonNull default io.micronaut.core.convert.ConversionService<?> getConversionService()
The default conversion service to use.- Returns:
- The conversion service
-
getResourceLoader
@NonNull default io.micronaut.core.io.scan.ClassPathResourceLoader getResourceLoader()
The class path resource loader to use.- Returns:
- The classpath resource loader
-
getOverrideConfigLocations
@Nullable default java.util.List<java.lang.String> getOverrideConfigLocations()
The config locations.- Returns:
- The config locations
-
isBannerEnabled
default boolean isBannerEnabled()
The banner is enabled by default.- Returns:
- The banner is enabled by default
-
isBootstrapEnvironmentEnabled
@Nullable default java.lang.Boolean isBootstrapEnvironmentEnabled()
-
-