public class MemoryPropertyIO extends AbstractPropertyIO
| Constructor and Description |
|---|
MemoryPropertyIO(Properties properties)
Returns a
MemoryPropertyIO which is initialized with a Properties instance. |
MemoryPropertyIO(Properties properties,
boolean readonly)
Returns a
MemoryPropertyIO which is initialized with a Properties instance. |
MemoryPropertyIO(PropertyIO io)
Returns a
MemoryPropertyIO which is initialized with a Properties instance from another PropertyIO using
the method PropertyIO.getProperties(). |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
A short descriptive name of the Property IO.
|
Properties |
getProperties()
Gets all the name,value pair in a Properties class instance.
|
String |
getSource()
A detailed description of the source of the property data.
|
void |
reload()
Reloads the name,value pairs for the PropertyIO, or forces the values to reload when read next time.
|
void |
setValue(String propertyName,
String value)
Sets the name,value as String in the IO.
|
void |
validate()
Validates the PropertyIO.
|
backup, getCacheTime, getLastLoaded, getLastSaved, getLogger, getTypedProperties, getTypedValue, getValue, isCached, isReadonly, logPerformanceGetProperties, logPerformanceSetValue, setCacheTime, storeTypedValue, updateLastLoaded, updateLastSaved, validateWritablepublic MemoryPropertyIO(Properties properties)
MemoryPropertyIO which is initialized with a Properties instance.
Readonly is false and cached is true.properties - the properties instance.public MemoryPropertyIO(Properties properties, boolean readonly)
MemoryPropertyIO which is initialized with a Properties instance.
Cached is true.properties - the properties instance.readonly - shall the MemoryPropertyIO be read only.public MemoryPropertyIO(PropertyIO io)
MemoryPropertyIO which is initialized with a Properties instance from another PropertyIO using
the method PropertyIO.getProperties().io - the PropertyIO instance.PropertyIO.getProperties()public Properties getProperties()
PropertyIOPropertiespublic String getName()
PropertyIOpublic String getSource()
PropertyIOpublic void setValue(String propertyName, String value) throws PropertyIOException
PropertyIOpropertyName - the name of the propertyvalue - the string value of the property.PropertyIOException - if the IO is readonly or failed to write the value.public void validate()
throws PropertyIOException
PropertyIOPropertyIOExceptionpublic void reload()
PropertyIOreload in interface PropertyIOreload in class AbstractPropertyIO