org.clazzes.util.reflect
Interface IClonerFactory

All Known Implementing Classes:
ClonerFactory, ClonerFactoryImpl

public interface IClonerFactory

An interface for a cloner factory.


Method Summary
<T> Cloner<T>
newCloner(java.lang.Class<T> clazz)
          Return a cloner for a given POJO class.
 

Method Detail

newCloner

<T> Cloner<T> newCloner(java.lang.Class<T> clazz)
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.

Type Parameters:
T -
Parameters:
clazz - The POJO class to clone.
Returns:
A cloner, which returns clones of the given class.


Copyright © 2010. All Rights Reserved.