Class ObservableConfiguration

    • Constructor Detail

      • ObservableConfiguration

        public ObservableConfiguration()
        Creates a new observable configuration.
    • Method Detail

      • removeObserver

        public void removeObserver​(ConfigurationObserver co)
        Removes an observer.
        Parameters:
        co - observer
      • getObservers

        public Collection<ConfigurationObserver> getObservers()
        Gets the current set of observers. The returned collection is a snapshot, and changes to it do not reflect back to the configuration.
        Returns:
        observers
      • expireAllObservers

        public void expireAllObservers()
        Expires all observers.
      • propertyChanged

        public void propertyChanged​(String key)
        Notifies all observers that a property changed.
        Parameters:
        key - configuration property key
      • propertiesChanged

        public void propertiesChanged()
        Notifies all observers that properties changed.