public class SharedPropertyRegistryKF extends SimplePropertyRegistry implements SharedPropertyRegistry, FeatureStateListener
Constructor and Description |
---|
SharedPropertyRegistryKF()
Creates a new shared registry KF.
|
Modifier and Type | Method and Description |
---|---|
String |
getProperty(String key)
Searches for the property with the specified key in the property lists.
|
String |
removeProperty(String key)
Removes a property.
|
String |
setProperty(String key,
String value)
Sets a property that maps a key to a value.
|
void |
stateChanged(Feature feature,
Feature.State previousState)
Called when the state of a Feature has changed.
|
checkPropertyPermission, getProperty
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProperty
public SharedPropertyRegistryKF()
@Nullable public String getProperty(String key)
getProperty
in interface PropertyLoader
getProperty
in class SimplePropertyRegistry
key
- the property key.@Nullable public String removeProperty(String key)
PropertyRegistry
removeProperty
in interface PropertyRegistry
removeProperty
in class SimplePropertyRegistry
key
- the key.null
if the property is not found.@Nullable public String setProperty(String key, String value)
PropertyRegistry
setProperty
in interface PropertyRegistry
setProperty
in class SimplePropertyRegistry
key
- the key.value
- the value.null
if the property is not found.public void stateChanged(@Nullable Feature feature, @Nullable Feature.State previousState)
FeatureStateListener
stateChanged
in interface FeatureStateListener
feature
- the Feature which state has changedpreviousState
- the previous state, null
if Feature state is Feature.State.INSTALLED