public class SimplePropertySource extends BasePropertySource
PropertySource
for properties-files.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,
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 |
---|---|
String |
getName() |
Map<String,String> |
getProperties() |
get, getDefaultOrdinal, getOrdinal, isScannable
public 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)
name
- the name, not null.properties
- the properties, not null.Copyright © 2014–2016 Apache Software Foundation. All rights reserved.