uk.org.ogsadai.service.wsrf.properties
Class WSRFPropertyListener

java.lang.Object
  extended byuk.org.ogsadai.service.wsrf.properties.WSRFPropertyListener
All Implemented Interfaces:
PropertyListener

public class WSRFPropertyListener
extends java.lang.Object
implements PropertyListener

A property listener to add, remove and update Globus resource properties from Globus resource property sets whenever the corresponding properties are added, removed or updated from OGSA-DAI's own resource property sets.

Author:
The OGSA-DAI Project Team

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
private static DAILogger LOG
          Logger object for logging in this class
private  ResourcePropertyFactory mFactory
          Factory for creating Globus resource properties
private  org.globus.wsrf.ResourcePropertySet mPropertySet
          Globus resource properties
 
Constructor Summary
WSRFPropertyListener(org.globus.wsrf.ResourcePropertySet propertySet, ResourcePropertyFactory factory)
          Creates a new listener that will add, remove and update Globus resource properties to and from a Globus resource property set.
 
Method Summary
 void propertyAdded(PropertyEvent event)
          Invoked when a new property is added to the properties object.
 void propertyRemoved(PropertyEvent event)
          Invoked when a property is removed from the properties object.
 void propertyUpdated(PropertyEvent event)
          Invoked when a property that already exists in the properties object is updated with a new property object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values

LOG

private static DAILogger LOG
Logger object for logging in this class


mPropertySet

private final org.globus.wsrf.ResourcePropertySet mPropertySet
Globus resource properties


mFactory

private final ResourcePropertyFactory mFactory
Factory for creating Globus resource properties

Constructor Detail

WSRFPropertyListener

public WSRFPropertyListener(org.globus.wsrf.ResourcePropertySet propertySet,
                            ResourcePropertyFactory factory)
Creates a new listener that will add, remove and update Globus resource properties to and from a Globus resource property set.

Parameters:
propertySet - Globus resource properties set.
factory - Abstract factory to use for creating Globus resource properties from OGSA-DAI resource properties.
Method Detail

propertyAdded

public void propertyAdded(PropertyEvent event)
Description copied from interface: PropertyListener
Invoked when a new property is added to the properties object.

Specified by:
propertyAdded in interface PropertyListener
Parameters:
event - Describes the details of the event including a reference to the new property object.

propertyRemoved

public void propertyRemoved(PropertyEvent event)
Description copied from interface: PropertyListener
Invoked when a property is removed from the properties object.

Specified by:
propertyRemoved in interface PropertyListener
Parameters:
event - Describes the details of the event including a reference to the property that was removed.

propertyUpdated

public void propertyUpdated(PropertyEvent event)
Description copied from interface: PropertyListener
Invoked when a property that already exists in the properties object is updated with a new property object.

Specified by:
propertyUpdated in interface PropertyListener
Parameters:
event - Describes the details of the event including a reference to the updated property object.