public class SimplePropertySource extends Object implements PropertySource
PropertySource
for properties-files.TAMAYA_ORDINAL
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, URL propertiesLocation)
name
- The property source namepropertiesLocation
- the URL encoded location, not null.public String getName()
getName
in interface PropertySource
public Map<String,String> getProperties()
getProperties
in interface PropertySource
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.