Package io.micronaut.testresources.core
Class LazyTestResourcesPropertySourceLoader
java.lang.Object
io.micronaut.testresources.core.LazyTestResourcesPropertySourceLoader
- All Implemented Interfaces:
io.micronaut.context.env.PropertySourceLoader
,io.micronaut.context.env.PropertySourceLocator
,io.micronaut.context.env.PropertySourceReader
,io.micronaut.core.util.Toggleable
- Direct Known Subclasses:
EmbeddedTestResourcesPropertySourceLoader
,TestResourcesClientPropertySourceLoader
public class LazyTestResourcesPropertySourceLoader
extends Object
implements io.micronaut.context.env.PropertySourceLoader
A property source loader which works in conjunction with the
LazyTestResourcesExpressionResolver
in order to resolve properties lazily.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final PropertyExpressionProducer
Optional<io.micronaut.context.env.PropertySource>
Optional<io.micronaut.context.env.PropertySource>
loadEnv
(String resourceName, io.micronaut.core.io.ResourceLoader resourceLoader, io.micronaut.context.env.ActiveEnvironment activeEnvironment) read
(String name, InputStream input) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.context.env.PropertySourceLoader
load
Methods inherited from interface io.micronaut.context.env.PropertySourceReader
getExtensions, read
Methods inherited from interface io.micronaut.core.util.Toggleable
isEnabled
-
Constructor Details
-
LazyTestResourcesPropertySourceLoader
-
-
Method Details
-
getProducer
-
load
public Optional<io.micronaut.context.env.PropertySource> load(String resourceName, io.micronaut.core.io.ResourceLoader resourceLoader) - Specified by:
load
in interfaceio.micronaut.context.env.PropertySourceLoader
-
loadEnv
public Optional<io.micronaut.context.env.PropertySource> loadEnv(String resourceName, io.micronaut.core.io.ResourceLoader resourceLoader, io.micronaut.context.env.ActiveEnvironment activeEnvironment) - Specified by:
loadEnv
in interfaceio.micronaut.context.env.PropertySourceLoader
-
read
- Specified by:
read
in interfaceio.micronaut.context.env.PropertySourceReader
-