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 Details

  • Method Details

    • getProducer

      protected final PropertyExpressionProducer getProducer()
    • load

      public Optional<io.micronaut.context.env.PropertySource> load(String resourceName, io.micronaut.core.io.ResourceLoader resourceLoader)
      Specified by:
      load in interface io.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 interface io.micronaut.context.env.PropertySourceLoader
    • read

      public Map<String,Object> read(String name, InputStream input)
      Specified by:
      read in interface io.micronaut.context.env.PropertySourceReader