Package com.microej.kf.util.property
Class SharedPropertyRegistryKF
- java.lang.Object
-
- ej.property.registry.SimplePropertyRegistry
-
- com.microej.kf.util.property.SharedPropertyRegistryKF
-
- All Implemented Interfaces:
ej.kf.FeatureStateListener,ej.property.PropertyLoader,ej.property.PropertyRegistry,ej.property.SharedPropertyRegistry
public class SharedPropertyRegistryKF extends ej.property.registry.SimplePropertyRegistry implements ej.property.SharedPropertyRegistry, ej.kf.FeatureStateListenerImplementation of shared property registry over Kernel and Features.
-
-
Constructor Summary
Constructors Constructor Description SharedPropertyRegistryKF()Creates a new shared registry KF.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetProperty(java.lang.String key)Searches for the property with the specified key in the property lists.java.lang.StringremoveProperty(java.lang.String key)java.lang.StringsetProperty(java.lang.String key, java.lang.String value)voidstateChanged(ej.kf.Feature feature, ej.kf.Feature.State previousState)-
Methods inherited from class ej.property.registry.SimplePropertyRegistry
checkPropertyPermission, getProperty
-
-
-
-
Method Detail
-
setProperty
@Nullable public java.lang.String setProperty(java.lang.String key, java.lang.String value)- Specified by:
setPropertyin interfaceej.property.PropertyRegistry- Overrides:
setPropertyin classej.property.registry.SimplePropertyRegistry
-
removeProperty
@Nullable public java.lang.String removeProperty(java.lang.String key)
- Specified by:
removePropertyin interfaceej.property.PropertyRegistry- Overrides:
removePropertyin classej.property.registry.SimplePropertyRegistry
-
getProperty
@Nullable public java.lang.String getProperty(java.lang.String key)
Searches for the property with the specified key in the property lists. If the property is not found in any map of properties, then the method returns null. Different property maps of properties exist. The order in which they are searched in is:- Current application,
- Kernel,
- Trusted applications,
- Other applications.
- Specified by:
getPropertyin interfaceej.property.PropertyLoader- Overrides:
getPropertyin classej.property.registry.SimplePropertyRegistry- Parameters:
key- the property key.- Returns:
- the value of the property list with the specified key value.
-
stateChanged
public void stateChanged(@Nullable ej.kf.Feature feature, @Nullable ej.kf.Feature.State previousState)- Specified by:
stateChangedin interfaceej.kf.FeatureStateListener
-
-