Interface DynamicConfigListener


  • public interface DynamicConfigListener
    Listener interface for listening to state changes in all DynamicProperty instances managed by a single DynamicConfig instance.
    Author:
    Elias Lindholm (elilin)
    • Method Detail

      • propertyChanged

        default void propertyChanged​(String propertyName,
                                     Object newValue)
        Invoked each time the value of a DynamicProperty instance changes. This method will be invoked on the same thread that changes the state of the DynamicProperty, typically some thread internal to a DynamicConfigSource implementation. Default implementation does nothing
      • propertyCreated

        default void propertyCreated​(String propertyName,
                                     Object initialValue)
        Invoked the first time a property with a given name is requested from a DynamicConfig instance, i.e. when it is created. Default implementation does nothing