JBoss Common Classes 2.2.17.GA

org.jboss.util.property
Interface BoundPropertyListener

All Superinterfaces:
EventListener, PropertyListener
All Known Implementing Classes:
BoundPropertyAdapter, FieldBoundPropertyListener, MethodBoundPropertyListener

public interface BoundPropertyListener
extends PropertyListener

The listener interface for receiving bound property events (as well as property events).

Classes that are interested in processing a bound property event implement this interface, and register instance objects with a given PropertyMap or via PropertyManager.addPropertyListener(PropertyListener).

Note that this is not the typical listener interface, as it extends from PropertyListener, and defines getPropertyName() which is not an event triggered method. This method serves to instruct the PropertyMap the listener is registered with, which property it will bind to.

Version:
$Revision: 1958 $
Author:
Jason Dillon

Method Summary
 String getPropertyName()
          Get the property name which this listener is bound to.
 void propertyBound(PropertyMap map)
          Notifies that this listener was bound to a property.
 void propertyUnbound(PropertyMap map)
          Notifies that this listener was unbound from a property.
 
Methods inherited from interface org.jboss.util.property.PropertyListener
propertyAdded, propertyChanged, propertyRemoved
 

Method Detail

getPropertyName

String getPropertyName()
Get the property name which this listener is bound to.

Returns:
Property name.

propertyBound

void propertyBound(PropertyMap map)
Notifies that this listener was bound to a property.

Parameters:
map - PropertyMap which contains property bound to.

propertyUnbound

void propertyUnbound(PropertyMap map)
Notifies that this listener was unbound from a property.

Parameters:
map - PropertyMap which contains property bound to.

JBoss Common Classes 2.2.17.GA

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.