Package io.micronaut.context.env.groovy
Class GroovyPropertySourceLoader
java.lang.Object
io.micronaut.context.env.AbstractPropertySourceLoader
io.micronaut.context.env.groovy.GroovyPropertySourceLoader
- All Implemented Interfaces:
io.micronaut.context.env.PropertySourceLoader,io.micronaut.context.env.PropertySourceLocator,io.micronaut.context.env.PropertySourceReader,io.micronaut.core.order.Ordered,io.micronaut.core.util.Toggleable
public class GroovyPropertySourceLoader
extends io.micronaut.context.env.AbstractPropertySourceLoader
Loads properties from a Groovy script.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
Fields 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 TypeMethodDescriptionintgetOrder()protected voidprocessInput(String name, InputStream input, Map<String, Object> finalMap) protected Optional<InputStream>Methods inherited from class io.micronaut.context.env.AbstractPropertySourceLoader
createPropertySource, isLogEnabled, load, loadEnv, processMap, read, 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
-
Constructor Details
-
GroovyPropertySourceLoader
public GroovyPropertySourceLoader()
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceio.micronaut.core.order.Ordered- Overrides:
getOrderin classio.micronaut.context.env.AbstractPropertySourceLoader
-
processInput
protected void processInput(String name, InputStream input, Map<String, Object> finalMap) throws IOException- Specified by:
processInputin classio.micronaut.context.env.AbstractPropertySourceLoader- Throws:
IOException
-
readInput
protected Optional<InputStream> readInput(io.micronaut.core.io.ResourceLoader resourceLoader, String fileName) - Overrides:
readInputin classio.micronaut.context.env.AbstractPropertySourceLoader
-
getExtensions
-