/** * Gets the current set of observers. The returned collection is a snapshot, and changes to it do * not reflect back to the configuration. * * @return observers */ public Collection<ConfigurationObserver> getObservers() { return snapshot(observers); }
/** * Expires all observers. */ public void expireAllObservers() { Collection<ConfigurationObserver> copy = snapshot(observers); for (ConfigurationObserver co : copy) co.sessionExpired(); }
/** * Notifies all observers that a property changed. * * @param key * configuration property key */ public void propertyChanged(String key) { Collection<ConfigurationObserver> copy = snapshot(observers); for (ConfigurationObserver co : copy) co.propertyChanged(key); }
/** * Notifies all observers that properties changed. */ public void propertiesChanged() { Collection<ConfigurationObserver> copy = snapshot(observers); for (ConfigurationObserver co : copy) co.propertiesChanged(); } }
/** * Gets the current set of observers. The returned collection is a snapshot, and changes to it do * not reflect back to the configuration. * * @return observers */ public Collection<ConfigurationObserver> getObservers() { return snapshot(observers); }
/** * Expires all observers. */ public void expireAllObservers() { Collection<ConfigurationObserver> copy = snapshot(observers); for (ConfigurationObserver co : copy) co.sessionExpired(); }
/** * Notifies all observers that a property changed. * * @param key * configuration property key */ public void propertyChanged(String key) { Collection<ConfigurationObserver> copy = snapshot(observers); for (ConfigurationObserver co : copy) co.propertyChanged(key); }
/** * Notifies all observers that properties changed. */ public void propertiesChanged() { Collection<ConfigurationObserver> copy = snapshot(observers); for (ConfigurationObserver co : copy) co.propertiesChanged(); } }