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, log

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    int
     
    protected void
    processInput(String name, InputStream input, Map<String,Object> finalMap)
     
    readInput(io.micronaut.core.io.ResourceLoader resourceLoader, String fileName)
     

    Methods inherited from class io.micronaut.context.env.AbstractPropertySourceLoader

    createPropertySource, isLogEnabled, load, loadEnv, processMap, read, setLogEnabled

    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

    read

    Methods inherited from interface io.micronaut.core.util.Toggleable

    isEnabled
  • Constructor Details

    • GroovyPropertySourceLoader

      public GroovyPropertySourceLoader()
  • Method Details

    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface io.micronaut.core.order.Ordered
      Overrides:
      getOrder in class io.micronaut.context.env.AbstractPropertySourceLoader
    • processInput

      protected void processInput(String name, InputStream input, Map<String,Object> finalMap) throws IOException
      Specified by:
      processInput in class io.micronaut.context.env.AbstractPropertySourceLoader
      Throws:
      IOException
    • readInput

      protected Optional<InputStream> readInput(io.micronaut.core.io.ResourceLoader resourceLoader, String fileName)
      Overrides:
      readInput in class io.micronaut.context.env.AbstractPropertySourceLoader
    • getExtensions

      public Set<String> getExtensions()