org.jbeans
Class SynchronizedJavaBean

java.lang.Object
  |
  +--org.jbeans.JavaBean
        |
        +--org.jbeans.SynchronizedJavaBean

public class SynchronizedJavaBean
extends JavaBean

This class is identical to its parent class JavaBean except that this class is synchronized. This means that this class and all of its child JavaBeans and its BeanProperty's are all thread safe.

Author:
Brian Pontarelli

Fields inherited from class org.jbeans.JavaBean
beanClass, children, properties, strict
 
Constructor Summary
SynchronizedJavaBean(Class beanClass)
          Creates new thread safe JavaBean
SynchronizedJavaBean(Class beanClass, boolean strict)
          Creates new thread safe JavaBean
 
Method Summary
 void setStrict(boolean value)
          Sets the value of the strict property for this JavaBean only, in a thread safe manner.
 
Methods inherited from class org.jbeans.JavaBean
addProperty, checkBeanProperty, getBeanClass, getBeanProperty, getChildJavaBean, getIndexedBeanProperty, getPropertyValue, getPropertyValue, getPropertyValue, instantiate, isBeanPropertyIndexed, isStrict, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchronizedJavaBean

public SynchronizedJavaBean(Class beanClass)
Creates new thread safe JavaBean
Parameters:
beanClass - The Class object used to find the properties and nested JavaBeans

SynchronizedJavaBean

public SynchronizedJavaBean(Class beanClass,
                            boolean strict)
Creates new thread safe JavaBean
Parameters:
beanClass - The Class object used to find the properties and nested JavaBeans
strict - Determines how this class handles cases when setting and retrieving property values and a child bean is null
Method Detail

setStrict

public void setStrict(boolean value)
Sets the value of the strict property for this JavaBean only, in a thread safe manner. This functions the same as the setStrict() method in the JavaBean class except that it is thread safe.
Overrides:
setStrict in class JavaBean
Parameters:
value - The value to set for the strictness of this and only this JavaBean