public static class PersistentProperty.InMemoryPersistentPropertyProvider extends Object implements PersistentPropertyProvider
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
properties |
| Constructor and Description |
|---|
InMemoryPersistentPropertyProvider() |
| Modifier and Type | Method and Description |
|---|---|
PersistentProperty |
get(String key)
Return the current value of the property with the given name.
|
String |
remove(String key)
Remove the property with the given name.
|
List<PersistentProperty> |
retrieveAll()
Retrieve the list of all current persisted properties.
|
String |
set(String key,
String value)
Set the value of the given property.
|
public List<PersistentProperty> retrieveAll()
PersistentPropertyProviderretrieveAll in interface PersistentPropertyProviderpublic PersistentProperty get(String key)
PersistentPropertyProviderget in interface PersistentPropertyProviderkey - the name of the property to return.public String set(String key, String value)
PersistentPropertyProviderset in interface PersistentPropertyProviderkey - the name of the property to set.value - the value for the property.public String remove(String key)
PersistentPropertyProviderremove in interface PersistentPropertyProviderkey - the name of the property to remove.Copyright © 2018 Orbital Enterprises. All rights reserved.