Package io.micronaut.aot.core.config
Class DefaultConfiguration
java.lang.Object
io.micronaut.aot.core.config.DefaultConfiguration
- All Implemented Interfaces:
Configuration
An implementation of configuration which uses properties
as the backing store.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(String key) Returns true if the configuration contains an entry for the specified key.@NonNull RuntimeReturns the target runtime for optimizations.@NonNull StringmandatoryValue(String key) Returns the value of the configuration for the requested key or fails if not available.<T> ToptionalValue(String key, Function<Optional<String>, T> producer) Returns the value for the requested key.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.aot.core.Configuration
booleanValue, isFeatureEnabled, optionalString, stringList, stringList
-
Constructor Details
-
DefaultConfiguration
-
-
Method Details
-
containsKey
Returns true if the configuration contains an entry for the specified key.- Specified by:
containsKeyin interfaceConfiguration- Parameters:
key- the key to look for- Returns:
- true if the configuration contains an entry for the key
-
mandatoryValue
Description copied from interface:ConfigurationReturns the value of the configuration for the requested key or fails if not available.- Specified by:
mandatoryValuein interfaceConfiguration- Parameters:
key- the key to look for- Returns:
- the value for the requested key
-
optionalValue
Description copied from interface:ConfigurationReturns the value for the requested key.- Specified by:
optionalValuein interfaceConfiguration- Type Parameters:
T- the type of the return value- Parameters:
key- the configuration keyproducer- a function called to generate a transformed value- Returns:
- a configured value
-
getRuntime
Description copied from interface:ConfigurationReturns the target runtime for optimizations.- Specified by:
getRuntimein interfaceConfiguration- Returns:
- the target runtime
-