tuwien.auto.calimero.mgmt
Interface PropertyClient.ResourceHandler

Enclosing class:
PropertyClient

public static interface PropertyClient.ResourceHandler

Provides an interface to load property definitions from a resource, and store property definitions into a resource.

It is used by the property client when loading or saving of property definitions is requested.

To allow the property client handling a user defined property resource, set a new property resource handler with (tuwien.auto.calimero.mgmt.PropertyClient.ResourceHandler).
It is not necessary for subtypes implementing this interface to synchronize the methods for concurrent access.


Method Summary
 java.util.Collection load(java.lang.String resource)
          Loads the properties from the resource.
 void save(java.lang.String resource, java.util.Collection properties)
          Saves the properties to the resource.
 

Method Detail

load

java.util.Collection load(java.lang.String resource)
                          throws KNXException
Loads the properties from the resource.

Parameters:
resource - the identifier of the resource used for loading the properties
Returns:
a collection containing the property definitions of type PropertyClient.Property
Throws:
KNXException - on error reading from the resource

save

void save(java.lang.String resource,
          java.util.Collection properties)
          throws KNXException
Saves the properties to the resource.

Parameters:
resource - the identifier of the resource used for saving the properties
properties - the property definitions in a collection holding PropertyClient.Property-type values
Throws:
KNXException - on error writing to the resource