Class YamlPropertySourceLoader
java.lang.Object
io.micronaut.context.env.AbstractPropertySourceLoader
io.micronaut.context.env.yaml.YamlPropertySourceLoader
- All Implemented Interfaces:
PropertySourceLoader, PropertySourceLocator, PropertySourceReader, Ordered, Toggleable
Loads properties from a YML file.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
Fields inherited from class AbstractPropertySourceLoader
DEFAULT_POSITION, logFields inherited from interface Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected voidprocessInput(String name, InputStream input, Map<String, Object> finalMap) Methods inherited from class AbstractPropertySourceLoader
createPropertySource, createPropertySource, getOrder, isLogEnabled, load, loadEnv, processMap, read, readInput, setLogEnabledMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PropertySourceLoader
loadMethods inherited from interface PropertySourceReader
read
-
Constructor Details
-
YamlPropertySourceLoader
public YamlPropertySourceLoader() -
YamlPropertySourceLoader
public YamlPropertySourceLoader(boolean logEnabled)
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Returns:
- Whether the component is enabled
-
getExtensions
-
processInput
- Specified by:
processInputin classAbstractPropertySourceLoader- Parameters:
name- The nameinput- The input streamfinalMap- The map with all the properties processed
-