Package io.smallrye.config
Class PropertiesConfigSource
- java.lang.Object
-
- io.smallrye.config.common.AbstractConfigSource
-
- io.smallrye.config.common.MapBackedConfigSource
-
- io.smallrye.config.PropertiesConfigSource
-
- All Implemented Interfaces:
Serializable,org.eclipse.microprofile.config.spi.ConfigSource
public class PropertiesConfigSource extends MapBackedConfigSource
- Author:
- Jeff Mesnil (c) 2017 Red Hat inc.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PropertiesConfigSource(URL url)Construct a new instancePropertiesConfigSource(URL url, int ordinal)PropertiesConfigSource(Map<String,String> properties, String source, int ordinal)PropertiesConfigSource(Properties properties, String source)
-
Method Summary
-
Methods inherited from class io.smallrye.config.common.MapBackedConfigSource
getProperties, getPropertyNames, getValue
-
Methods inherited from class io.smallrye.config.common.AbstractConfigSource
getName, getOrdinal, toString
-
-
-
-
Constructor Detail
-
PropertiesConfigSource
public PropertiesConfigSource(URL url) throws IOException
Construct a new instance- Parameters:
url- a property file location- Throws:
IOException- if an error occurred when reading from the input stream
-
PropertiesConfigSource
public PropertiesConfigSource(URL url, int ordinal) throws IOException
- Throws:
IOException
-
PropertiesConfigSource
public PropertiesConfigSource(Properties properties, String source)
-
-