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

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

public interface PropertySource
     
     
extends PropertyProvider

Defines a source for properties with read and write access.

See Also:
PropertyProvider, PropertyManager

Method Summary
 Property removeProperty(String name)
          Removes a property making it unknown to the system.
 Property setProperty(Property property)
          Sets the property with the given name to the given value.
 
Methods inherited from interface de.smartics.properties.api.config.domain.PropertyProvider
containsKey, getConfigurationKey, getProperties, getProperty, getSourceId, isLazy
 

Method Detail

setProperty

@CheckForNull
Property setProperty(Property property)
                     throws NullPointerException
Sets the property with the given name to the given value.

Parameters:
property - the property to be set.
Returns:
the old property or null if it either was not set or had the value null.
Throws:
NullPointerException - if property is null.

removeProperty

@CheckForNull
Property removeProperty(String name)
                        throws NullPointerException
Removes a property making it unknown to the system. If only the value should be set to null use setProperty(Property).

Parameters:
name - the name of the property to be removed.
Returns:
the old value of the property.
Throws:
NullPointerException - if name is null.


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