Package io.micronaut.context.env
Interface PropertySourceReader
-
- All Known Subinterfaces:
PropertySourceLoader
- All Known Implementing Classes:
AbstractPropertySourceLoader
,PropertiesPropertySourceLoader
,YamlPropertySourceLoader
public interface PropertySourceReader
Interface for classes that read and process properties sources.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.Set<java.lang.String>
getExtensions()
default java.util.Map<java.lang.String,java.lang.Object>
read(java.lang.String name, byte[] bytes)
Read a property source from bytes.java.util.Map<java.lang.String,java.lang.Object>
read(java.lang.String name, java.io.InputStream input)
Read a property source from an input stream.
-
-
-
Method Detail
-
read
java.util.Map<java.lang.String,java.lang.Object> read(java.lang.String name, java.io.InputStream input) throws java.io.IOException
Read a property source from an input stream.- Parameters:
name
- The name of the property sourceinput
- The bytes- Returns:
- A map of string to values
- Throws:
java.io.IOException
- if there is an error processing the property source
-
getExtensions
default java.util.Set<java.lang.String> getExtensions()
- Returns:
- The extensions this reader supports.
-
read
default java.util.Map<java.lang.String,java.lang.Object> read(java.lang.String name, byte[] bytes)
Read a property source from bytes.- Parameters:
name
- The name of the property sourcebytes
- The bytes- Returns:
- A map of string to values
-
-