org.clazzes.util.reflect.impl
Class ClonerFactoryImpl

java.lang.Object
  extended by org.clazzes.util.reflect.ClonerFactory
      extended by org.clazzes.util.reflect.impl.ClonerFactoryImpl

public class ClonerFactoryImpl
extends ClonerFactory

The default cloner factory implementation.

Author:
wglas

Constructor Summary
ClonerFactoryImpl()
           
 
Method Summary
<T> Cloner<T>
newCloner(java.lang.Class<T> clazz)
          Return a cloner for a given POJO class.
 
Methods inherited from class org.clazzes.util.reflect.ClonerFactory
newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClonerFactoryImpl

public ClonerFactoryImpl()
Method Detail

newCloner

public <T> Cloner<T> newCloner(java.lang.Class<T> clazz)
Description copied from class: ClonerFactory
Return a cloner for a given POJO class. Please note, that if your class supports multiple subclasses and the cloner returned for your class should return appropriate subclass instances, it is strongly recommended, that your class implements the Cloneable interface.

Specified by:
newCloner in class ClonerFactory
Parameters:
clazz - The POJO class to clone.
Returns:
A cloner, which returns clones of the given class.


Copyright © 2009. All Rights Reserved.