de.smartics.properties.api.config.domain
Interface PropertyManager

Package class diagram package PropertyManager
All Superinterfaces:
PropertyProvider, PropertySource, Serializable
All Known Implementing Classes:
InMemoryPropertiesManager

public interface PropertyManager
     
     
extends PropertySource

Provides means to manage properties. In addition to reading a writing properties, implementations of this interface also allow to add and remove listeners to track changes.

See Also:
PropertyProvider, PropertySource

Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Adds the given listener to track any property changes.
 void addPropertyChangeListener(String name, PropertyChangeListener listener)
          Adds the given listener as a listener to the given property.
 void removePropertyChangeListener(PropertyChangeListener listener)
          Removes the given listener to stop tracking property changes.
 void removePropertyChangeListener(String name, PropertyChangeListener listener)
          Removes the given listener as a listener to the given property.
 
Methods inherited from interface de.smartics.properties.api.config.domain.PropertySource
removeProperty, setProperty
 
Methods inherited from interface de.smartics.properties.api.config.domain.PropertyProvider
containsKey, getConfigurationKey, getProperties, getProperty, getSourceId, isLazy
 

Method Detail

addPropertyChangeListener

void addPropertyChangeListener(String name,
                               PropertyChangeListener listener)
                               throws NullPointerException
Adds the given listener as a listener to the given property.

Parameters:
name - the name of the property to track changes.
listener - the listener to add.
Throws:
NullPointerException - if name or listener is null.

removePropertyChangeListener

void removePropertyChangeListener(String name,
                                  PropertyChangeListener listener)
                                  throws NullPointerException
Removes the given listener as a listener to the given property.

Parameters:
name - the name of the property to stop tracking changes.
listener - the listener to remove.
Throws:
NullPointerException - if name or listener is null.

addPropertyChangeListener

void addPropertyChangeListener(PropertyChangeListener listener)
                               throws NullPointerException
Adds the given listener to track any property changes.

Parameters:
listener - the listener to add.
Throws:
NullPointerException - if listener is null.

removePropertyChangeListener

void removePropertyChangeListener(PropertyChangeListener listener)
                                  throws NullPointerException
Removes the given listener to stop tracking property changes.

Parameters:
listener - the listener to remove.
Throws:
NullPointerException - if listener is null.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.