org.jbeans
Class SynchronizedIndexedBeanProperty

java.lang.Object
  |
  +--org.jbeans.BaseBeanProperty
        |
        +--org.jbeans.BeanProperty
              |
              +--org.jbeans.IndexedBeanProperty
                    |
                    +--org.jbeans.SynchronizedIndexedBeanProperty

public class SynchronizedIndexedBeanProperty
extends IndexedBeanProperty

This class is identical to its parent except that it is thread safe.

Author:
Brian Pontarelli

Fields inherited from class org.jbeans.BeanProperty
read, write
 
Fields inherited from class org.jbeans.BaseBeanProperty
BAD_CONVERT, beanClass, conversionListeners, GET, POST_CONVERT, PRE_CONVERT, propertyListeners, propertyName, propertyType, SET
 
Constructor Summary
protected SynchronizedIndexedBeanProperty()
          Constructs a new instance of the thread safe IndexedBeanProperty
  SynchronizedIndexedBeanProperty(String propertyName, Class beanClass)
          Constructs a new instance of the thread safe IndexedBeanProperty
 
Method Summary
 void addConversionListener(ConversionListener listener)
          This method is the same as the addConversionListener() method in the BaseBeanProperty class, except that it is thread safe.
 void addPropertyListener(PropertyListener listener)
          This method is the same as the addPropertyListener() method in the BaseBeanProperty class, except that it is thread safe.
 Iterator getConversionListeners()
          Synchronized get conversion listeners method.
 Iterator getPropertyListeners()
          Synchronized get property listeners method.
 boolean hasConversionListeners()
          This method is the same as the hasConversionListeners() method in the BaseBeanProperty class, except that it is thread safe.
 boolean hasPropertyListeners()
          This method is the same as the hasPropertyListeners() method in the BaseBeanProperty class, except that it is thread safe.
 void removeConversionListener(ConversionListener listener)
          This method is the same as the removeConversionListener() method in the BaseBeanProperty class, except that it is thread safe.
 void removePropertyListener(PropertyListener listener)
          This method is the same as the removePropertyListener() method in the BaseBeanProperty class, except that it is thread safe.
 
Methods inherited from class org.jbeans.IndexedBeanProperty
getPropertyValue, getPropertyValue, initialize, setPropertyValue, setPropertyValue, setPropertyValue
 
Methods inherited from class org.jbeans.BeanProperty
getBeanClass, getReadMethod, getWriteMethod
 
Methods inherited from class org.jbeans.BaseBeanProperty
convertParameter, fireConversionEvent, firePropertyEvent, getFullName, getPropertyName, getPropertyType, instantiate, setPropertyValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchronizedIndexedBeanProperty

protected SynchronizedIndexedBeanProperty()
                                   throws BeanException
Constructs a new instance of the thread safe IndexedBeanProperty

SynchronizedIndexedBeanProperty

public SynchronizedIndexedBeanProperty(String propertyName,
                                       Class beanClass)
                                throws BeanException
Constructs a new instance of the thread safe IndexedBeanProperty
Method Detail

addPropertyListener

public void addPropertyListener(PropertyListener listener)
This method is the same as the addPropertyListener() method in the BaseBeanProperty class, except that it is thread safe.
Overrides:
addPropertyListener in class BaseBeanProperty
Following copied from class: org.jbeans.BaseBeanProperty
Parameters:
listener - The new property listener to add to the list

removePropertyListener

public void removePropertyListener(PropertyListener listener)
This method is the same as the removePropertyListener() method in the BaseBeanProperty class, except that it is thread safe.
Overrides:
removePropertyListener in class BaseBeanProperty
Following copied from class: org.jbeans.BaseBeanProperty
Parameters:
listener - The property listener to remove from the list

getPropertyListeners

public Iterator getPropertyListeners()
Synchronized get property listeners method. Since this must also safety the fireEvent method, this makes a clone of the list and returns the iterator for the clone
Overrides:
getPropertyListeners in class BaseBeanProperty
Following copied from class: org.jbeans.BaseBeanProperty
Returns:
An interator for the list of property listeners

hasPropertyListeners

public boolean hasPropertyListeners()
This method is the same as the hasPropertyListeners() method in the BaseBeanProperty class, except that it is thread safe.
Overrides:
hasPropertyListeners in class BaseBeanProperty
Following copied from class: org.jbeans.BaseBeanProperty
Returns:
True or false depending on if there are property listeners or not

addConversionListener

public void addConversionListener(ConversionListener listener)
This method is the same as the addConversionListener() method in the BaseBeanProperty class, except that it is thread safe.
Overrides:
addConversionListener in class BaseBeanProperty
Following copied from class: org.jbeans.BaseBeanProperty
Parameters:
listener - The new conversion listener to add to the list

removeConversionListener

public void removeConversionListener(ConversionListener listener)
This method is the same as the removeConversionListener() method in the BaseBeanProperty class, except that it is thread safe.
Overrides:
removeConversionListener in class BaseBeanProperty
Following copied from class: org.jbeans.BaseBeanProperty
Parameters:
listener - The conversion listener to remove from the list

getConversionListeners

public Iterator getConversionListeners()
Synchronized get conversion listeners method. Since this must also safety the fireEvent method, this makes a clone of the list and returns the iterator for the clone
Overrides:
getConversionListeners in class BaseBeanProperty

hasConversionListeners

public boolean hasConversionListeners()
This method is the same as the hasConversionListeners() method in the BaseBeanProperty class, except that it is thread safe.
Overrides:
hasConversionListeners in class BaseBeanProperty