com.googlecode.xbean.converters.PropertyConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xbean Show documentation
Show all versions of xbean Show documentation
Library to do client(-)service bean conversion using annotations.
The newest version!
package com.googlecode.xbean.converters;
/**
* Interface for property converter's. Implement this interface to define your
* custom property conversion in a bean.
*
* For example: You may need to convert Date property in one bean to String
* property in other bean. In such case, you can create your own converter and
* implement your logic in the respective overriden methods.
*
* @author asanthan
*
*
*
* @version $Revision: 1.0 $
*/
public interface PropertyConverter {
/**
* Method to convert the given Object of type S to object of type D.
*
* @param pObject
* - source object to convert.
*
*
* @return D - return the converted object. * @throws Exception
*/
public D convert(S pObject) throws Exception;
}