SOURCE - is the generic source-type.TARGET - is the generic target-type.public abstract class AbstractValueConverterToSimilarPojo<SOURCE,TARGET> extends AbstractValueConverterToCompatiblePojo<SOURCE,TARGET>
ValueConverter that extends
AbstractValueConverterToCompatiblePojo and adds tolerance for unmatched properties. Instead of throwing an
exception the first usage of an unmatched setter is logged once as warning.| Modifier and Type | Field and Description |
|---|---|
private Set<PojoPropertyAccessorOneArg> |
unmatchedSetters |
| Modifier | Constructor and Description |
|---|---|
|
AbstractValueConverterToSimilarPojo()
The constructor.
|
protected |
AbstractValueConverterToSimilarPojo(SetFactory setFactory)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleNoGetterForSetter(PojoPropertyAccessorOneArg setter,
Class<?> targetClass,
Object sourceObject,
Class<?> sourceClass)
Called if the target object of the conversion has a setter that has no corresponding getter in the source
object to convert.
|
convert, doInitialize, getPojoDescriptorBuilder, getPojoDescriptorBuilderFactory, setPojoDescriptorBuilder, setPojoDescriptorBuilderFactory, setPojoFactorygetComposedValueConverter, setComposedValueConverterconvert, getReflectionUtil, setReflectionUtilcreateLogger, getLoggerdoInitialized, getInitializationState, initializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSourceType, getTargetTypeprivate final Set<PojoPropertyAccessorOneArg> unmatchedSetters
public AbstractValueConverterToSimilarPojo()
protected AbstractValueConverterToSimilarPojo(SetFactory setFactory)
setFactory - is the SetFactory used to create Set instances.protected void handleNoGetterForSetter(PojoPropertyAccessorOneArg setter, Class<?> targetClass, Object sourceObject, Class<?> sourceClass)
AbstractValueConverterToCompatiblePojohandleNoGetterForSetter in class AbstractValueConverterToCompatiblePojo<SOURCE,TARGET>setter - is the existing setter.targetClass - is the Class reflecting the target object to convert to.sourceObject - is the source object to convert that has no corresponding getter.sourceClass - is the Class reflecting the source object.Copyright © 2001–2016 mmm-Team. All rights reserved.