public class SimplePropertySource extends BasePropertySource
PropertySource for
simple property files and XML property files.| Modifier and Type | Class and Description |
|---|---|
static class |
SimplePropertySource.Builder
SimplePropertySource builder static inner class. |
| Constructor and Description |
|---|
SimplePropertySource(File propertiesLocation)
Creates a new Properties based PropertySource based on the given URL.
|
SimplePropertySource(String name,
Map<String,String> properties)
Creates a new Properties based PropertySource based on the given properties map.
|
SimplePropertySource(String name,
Map<String,String> properties,
int defaultOrdinal)
Creates a new Properties based PropertySource.
|
SimplePropertySource(String name,
URL propertiesLocation)
Creates a new Properties based PropertySource based on the given URL.
|
SimplePropertySource(URL propertiesLocation)
Creates a new Properties based PropertySource based on the given URL.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,org.apache.tamaya.spi.PropertyValue> |
getProperties() |
static SimplePropertySource.Builder |
newBuilder() |
get, getDefaultOrdinal, getName, getOrdinal, isScannable, setDefaultOrdinal, setName, setOrdinal, toString, toStringValuespublic SimplePropertySource(File propertiesLocation)
propertiesLocation - the URL encoded location, not null.public SimplePropertySource(URL propertiesLocation)
propertiesLocation - the URL encoded location, not null.public SimplePropertySource(String name, Map<String,String> properties, int defaultOrdinal)
name - the property source name, not null.properties - the properties, not nulldefaultOrdinal - the default ordinalpublic SimplePropertySource(String name, Map<String,String> properties)
name - the name, not null.properties - the properties, not null.public static SimplePropertySource.Builder newBuilder()
Copyright © 2016–2017 Apache Software Foundation. All rights reserved.