org.omnaest.utils.beans.replicator
Class BeanCopier<B>

java.lang.Object
  extended by org.omnaest.utils.beans.replicator.BeanReplicator<B,B>
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.omnaest.utils.beans.replicator.BeanReplicator
BeanReplicator.ConverterPipeDeclarer, BeanReplicator.Declaration, BeanReplicator.DeclarationSupport, BeanReplicator.PipeBuilder<FROM,TO>
 
Constructor Summary
BeanCopier(Class<B> type)
           
 
Method Summary
 BeanCopier<B> declare(BeanReplicator.Declaration declaration)
          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)
 BeanCopier<B> setExceptionHandler(ExceptionHandler exceptionHandler)
          The given ExceptionHandler should handle any CopyException and PreparedBeanCopier.NonMatchingPropertyException
 
Methods inherited from class org.omnaest.utils.beans.replicator.BeanReplicator
clone, copy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanCopier

public BeanCopier(Class<B> type)
Parameters:
type -
See Also:
BeanCopier
Method Detail

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.