Package io.micronaut.context.env
Class PropertiesPropertySourceLoader
java.lang.Object
io.micronaut.context.env.AbstractPropertySourceLoader
io.micronaut.context.env.PropertiesPropertySourceLoader
- All Implemented Interfaces:
PropertySourceLoader,PropertySourceLocator,PropertySourceReader,Ordered,Toggleable
Default load that handles Java properties files.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
FieldsFields inherited from class io.micronaut.context.env.AbstractPropertySourceLoader
DEFAULT_POSITION, logFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprocessInput(String name, InputStream input, Map<String, Object> finalMap) Methods inherited from class io.micronaut.context.env.AbstractPropertySourceLoader
createPropertySource, createPropertySource, getOrder, isLogEnabled, load, loadEnv, processMap, read, readInput, setLogEnabledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.context.env.PropertySourceLoader
loadMethods inherited from interface io.micronaut.context.env.PropertySourceReader
readMethods inherited from interface io.micronaut.core.util.Toggleable
isEnabled
-
Field Details
-
PROPERTIES_EXTENSION
File extension for property source loader.- See Also:
-
-
Constructor Details
-
PropertiesPropertySourceLoader
public PropertiesPropertySourceLoader() -
PropertiesPropertySourceLoader
public PropertiesPropertySourceLoader(boolean logEnabled)
-
-
Method Details
-
getExtensions
- Returns:
- The extensions this reader supports.
-
processInput
protected void processInput(String name, InputStream input, Map<String, Object> finalMap) throws IOException- Specified by:
processInputin classAbstractPropertySourceLoader- Parameters:
name- The nameinput- The input streamfinalMap- The map with all the properties processed- Throws:
IOException- If the input stream doesn't exist
-