public class MutablePropertiesPropertySource extends AbstractMutablePropertySource
PropertySource
for .properties files.transactions
Constructor and Description |
---|
MutablePropertiesPropertySource(File propertiesLocation,
int defaultOrdinal)
Creates a new Properties based PropertySource based on the given URL.
|
Modifier and Type | Method and Description |
---|---|
protected void |
commitInternal(ConfigChangeContext context)
Commit of the changes to the current property source.
|
org.apache.tamaya.spi.PropertyValue |
get(String key) |
String |
getName() |
Map<String,String> |
getProperties() |
commitTransaction, getAddedProperties, getRemovedProperties, isRemovable, isWritable, put, putAll, remove, remove, rollbackTransaction, startTransaction
getDefaultOrdinal, getOrdinal, isScannable
public MutablePropertiesPropertySource(File propertiesLocation, int defaultOrdinal)
propertiesLocation
- the URL encoded location, not null.defaultOrdinal
- the default ordinal to be used, when no ordinal is provided with the property
source's properties.public org.apache.tamaya.spi.PropertyValue get(String key)
get
in interface org.apache.tamaya.spi.PropertySource
get
in class org.apache.tamaya.spisupport.BasePropertySource
public String getName()
protected void commitInternal(ConfigChangeContext context)
AbstractMutablePropertySource
commitInternal
in class AbstractMutablePropertySource
context
- The configuration change to be committed/applied.Copyright © 2014–2016 Apache Software Foundation. All rights reserved.