Package io.smallrye.config
Class PropertiesConfigSource
- java.lang.Object
-
- io.smallrye.config.common.AbstractConfigSource
-
- io.smallrye.config.MapBackedConfigValueConfigSource
-
- io.smallrye.config.PropertiesConfigSource
-
- All Implemented Interfaces:
ConfigValueConfigSource,Serializable,org.eclipse.microprofile.config.spi.ConfigSource
public class PropertiesConfigSource extends MapBackedConfigValueConfigSource
- Author:
- Jeff Mesnil (c) 2017 Red Hat inc.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.smallrye.config.ConfigValueConfigSource
ConfigValueConfigSource.ConfigValueMapStringView, ConfigValueConfigSource.ConfigValueMapView, ConfigValueConfigSource.ConfigValueProperties
-
-
Constructor Summary
Constructors Constructor Description PropertiesConfigSource(URL url)PropertiesConfigSource(URL url, int defaultOrdinal)PropertiesConfigSource(URL url, String name, int defaultOrdinal)PropertiesConfigSource(Map<String,String> properties, String name)PropertiesConfigSource(Map<String,String> properties, String name, int defaultOrdinal)PropertiesConfigSource(Properties properties, String name)PropertiesConfigSource(Properties properties, String name, int defaultOrdinal)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,ConfigValue>urlToConfigValueMap(URL locationOfProperties, String name, int ordinal)-
Methods inherited from class io.smallrye.config.MapBackedConfigValueConfigSource
getConfigValue, getConfigValueProperties, getPropertyNames
-
Methods inherited from class io.smallrye.config.common.AbstractConfigSource
getName, getOrdinal, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.microprofile.config.spi.ConfigSource
getName, getOrdinal
-
Methods inherited from interface io.smallrye.config.ConfigValueConfigSource
getProperties, getValue
-
-
-
-
Constructor Detail
-
PropertiesConfigSource
public PropertiesConfigSource(URL url) throws IOException
- Throws:
IOException
-
PropertiesConfigSource
public PropertiesConfigSource(URL url, int defaultOrdinal) throws IOException
- Throws:
IOException
-
PropertiesConfigSource
public PropertiesConfigSource(URL url, String name, int defaultOrdinal) throws IOException
- Throws:
IOException
-
PropertiesConfigSource
public PropertiesConfigSource(Properties properties, String name)
-
PropertiesConfigSource
public PropertiesConfigSource(Map<String,String> properties, String name, int defaultOrdinal)
-
PropertiesConfigSource
public PropertiesConfigSource(Properties properties, String name, int defaultOrdinal)
-
-
Method Detail
-
urlToConfigValueMap
public static Map<String,ConfigValue> urlToConfigValueMap(URL locationOfProperties, String name, int ordinal) throws IOException
- Throws:
IOException
-
-