net.sf.beanlib.provider.handler
Class AbstractBeanPopulationExceptionHandler

java.lang.Object
  extended by net.sf.beanlib.provider.handler.AbstractBeanPopulationExceptionHandler
All Implemented Interfaces:
BeanPopulationExceptionHandler

public abstract class AbstractBeanPopulationExceptionHandler
extends Object
implements BeanPopulationExceptionHandler

Can be used as a convenient adaptor class for implementing the BeanPopulationExceptionHandler interface.

Author:
Joe D. Velopar

Field Summary
protected  Object fromBean
           
protected  String propertyName
           
protected  Method readerMethod
           
protected  Method setterMethod
           
protected  Object toBean
           
 
Fields inherited from interface net.sf.beanlib.spi.BeanPopulationExceptionHandler
ABORT, CONTINUE
 
Constructor Summary
AbstractBeanPopulationExceptionHandler()
           
 
Method Summary
 BeanPopulationExceptionHandler initFromBean(Object fromBean)
          Sets the bean from which the property is populated from, ie the source bean.
 BeanPopulationExceptionHandler initPropertyName(String propertyName)
          Sets the name of the property being populated.
 BeanPopulationExceptionHandler initReaderMethod(Method readerMethod)
          Sets the reader method used to retreive the value from the source bean.
 BeanPopulationExceptionHandler initSetterMethod(Method setterMethod)
          Sets the setter method used to set the value to the target bean.
 BeanPopulationExceptionHandler initToBean(Object toBean)
          Sets the bean to which the property is populated to, ie the target bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.beanlib.spi.BeanPopulationExceptionHandler
handleException
 

Field Detail

propertyName

protected String propertyName

fromBean

protected Object fromBean

toBean

protected Object toBean

readerMethod

protected Method readerMethod

setterMethod

protected Method setterMethod
Constructor Detail

AbstractBeanPopulationExceptionHandler

public AbstractBeanPopulationExceptionHandler()
Method Detail

initPropertyName

public BeanPopulationExceptionHandler initPropertyName(String propertyName)
Description copied from interface: BeanPopulationExceptionHandler
Sets the name of the property being populated.

Specified by:
initPropertyName in interface BeanPopulationExceptionHandler

initFromBean

public BeanPopulationExceptionHandler initFromBean(Object fromBean)
Description copied from interface: BeanPopulationExceptionHandler
Sets the bean from which the property is populated from, ie the source bean.

Specified by:
initFromBean in interface BeanPopulationExceptionHandler

initReaderMethod

public BeanPopulationExceptionHandler initReaderMethod(Method readerMethod)
Description copied from interface: BeanPopulationExceptionHandler
Sets the reader method used to retreive the value from the source bean.

Specified by:
initReaderMethod in interface BeanPopulationExceptionHandler

initToBean

public BeanPopulationExceptionHandler initToBean(Object toBean)
Description copied from interface: BeanPopulationExceptionHandler
Sets the bean to which the property is populated to, ie the target bean.

Specified by:
initToBean in interface BeanPopulationExceptionHandler

initSetterMethod

public BeanPopulationExceptionHandler initSetterMethod(Method setterMethod)
Description copied from interface: BeanPopulationExceptionHandler
Sets the setter method used to set the value to the target bean.

Specified by:
initSetterMethod in interface BeanPopulationExceptionHandler