org.omnaest.utils.beans.replicator
Class BeanCopier<B>
java.lang.Object
org.omnaest.utils.beans.replicator.BeanReplicator<B,B>
org.omnaest.utils.beans.replicator.BeanCopier<B>
- Type Parameters:
B -
- All Implemented Interfaces:
- Serializable
public class BeanCopier<B>
- extends BeanReplicator<B,B>
The BeanCopier is a simple BeanReplicator which has the same source and target type
- Author:
- Omnaest
- See Also:
BeanReplicator,
Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanCopier
public BeanCopier(Class<B> type)
- Parameters:
type - - See Also:
BeanCopier
declare
public BeanCopier<B> declare(BeanReplicator.Declaration declaration)
- Description copied from class:
BeanReplicator
- Allows the specify a mapping
BeanReplicator.Declaration
BeanReplicator.Declaration have to be made before any call to BeanReplicator.copy(Object, Object) or BeanReplicator.clone(Object)
- Overrides:
declare in class BeanReplicator<B,B>
- Parameters:
declaration - BeanReplicator.Declaration
- Returns:
- this
setExceptionHandler
public BeanCopier<B> setExceptionHandler(ExceptionHandler exceptionHandler)
- Description copied from class:
BeanReplicator
- The given
ExceptionHandler should handle any CopyException and PreparedBeanCopier.NonMatchingPropertyException
- Overrides:
setExceptionHandler in class BeanReplicator<B,B>
- Returns:
- this
Copyright © 2013. All Rights Reserved.