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
NO_OP
static final CustomBeanTransformerSpi NO_OP
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 objectpropertyInfo
- 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