net.sf.beanlib.spi
Interface CustomBeanTransformerSpi

All Superinterfaces:
Transformable

public interface CustomBeanTransformerSpi
extends Transformable

Custom Bean Transformer SPI.

Used to customize the transformation process provided by BeanTransformerSpi.

Author:
Joe D. Velopar

Nested Class Summary
static interface CustomBeanTransformerSpi.Factory
          Custom Bean Transformer Factory SPI.
 
Field Summary
static CustomBeanTransformerSpi NO_OP
           
 
Method Summary
<T> boolean
isTransformable(Object from, Class<T> toClass, PropertyInfo propertyInfo)
          Returns true if the given object is to be transformed by this transformer; false otherwise.
 
Methods inherited from interface net.sf.beanlib.spi.Transformable
transform
 

Field Detail

NO_OP

static final CustomBeanTransformerSpi NO_OP
Method Detail

isTransformable

<T> boolean isTransformable(Object from,
                            Class<T> toClass,
                            PropertyInfo propertyInfo)
Returns true if the given object is to be transformed by this transformer; false otherwise.

Type Parameters:
T - target class type
Parameters:
from - source object
propertyInfo - If null, it means the in object is a root level object. Otherwise, propertyInfo contains information about the input object as a java bean property value to be transformed.
toClass - target class