net.sf.beanlib.provider
Class JavaBeanPopulatableSupport

java.lang.Object
  extended by net.sf.beanlib.provider.JavaBeanPopulatableSupport
All Implemented Interfaces:
DetailedBeanPopulatable

public class JavaBeanPopulatableSupport
extends Object
implements DetailedBeanPopulatable

Default implementation of DetailedBeanPopulatable.

Author:
Joe D. Velopar

Field Summary
static JavaBeanPopulatableSupport inst
           
 
Fields inherited from interface net.sf.beanlib.spi.DetailedBeanPopulatable
ALWAYS_POPULATE, JAVABEAN_POPULATE
 
Constructor Summary
private JavaBeanPopulatableSupport()
           
 
Method Summary
 boolean shouldPopulate(String propertyName, Object fromBean, Method readerMethod, Object toBean, Method setterMethod)
          Returns true if the given JavaBean property should be populated; false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inst

public static final JavaBeanPopulatableSupport inst
Constructor Detail

JavaBeanPopulatableSupport

private JavaBeanPopulatableSupport()
Method Detail

shouldPopulate

public boolean shouldPopulate(String propertyName,
                              Object fromBean,
                              Method readerMethod,
                              Object toBean,
                              Method setterMethod)
Description copied from interface: DetailedBeanPopulatable
Returns true if the given JavaBean property should be populated; false otherwise.

Specified by:
shouldPopulate in interface DetailedBeanPopulatable
Parameters:
propertyName - JavaBean property name.
fromBean - from bean.
readerMethod - reader method of the JavaBean property name.
toBean - to bean.
setterMethod - setter method of the JavaBean property name.
Returns:
true if the given JavaBean property should be populated.