Class 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.FeatureStateListener
    Implementation of shared property registry over Kernel and Features.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getProperty​(java.lang.String key)
      Searches for the property with the specified key in the property lists.
      java.lang.String removeProperty​(java.lang.String key)  
      java.lang.String setProperty​(java.lang.String key, java.lang.String value)  
      void stateChanged​(ej.kf.Feature feature, ej.kf.Feature.State previousState)  
      • Methods inherited from class ej.property.registry.SimplePropertyRegistry

        checkPropertyPermission, getProperty
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface ej.property.PropertyLoader

        getProperty
    • Constructor Detail

      • SharedPropertyRegistryKF

        public SharedPropertyRegistryKF()
        Creates a new shared registry KF.
    • Method Detail

      • setProperty

        @Nullable
        public java.lang.String setProperty​(java.lang.String key,
                                            java.lang.String value)
        Specified by:
        setProperty in interface ej.property.PropertyRegistry
        Overrides:
        setProperty in class ej.property.registry.SimplePropertyRegistry
      • removeProperty

        @Nullable
        public java.lang.String removeProperty​(java.lang.String key)
        Specified by:
        removeProperty in interface ej.property.PropertyRegistry
        Overrides:
        removeProperty in class ej.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:
        1. Current application,
        2. Kernel,
        3. Trusted applications,
        4. Other applications.
        In the case a property value is set to null, then it is considered as non-existent in its map and the search goes on, possibly returning a shared-property sharing the same key.
        Specified by:
        getProperty in interface ej.property.PropertyLoader
        Overrides:
        getProperty in class ej.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:
        stateChanged in interface ej.kf.FeatureStateListener