public class CloningProvider<T extends Cloneable> extends Object implements ObjectProvider<T>, Serializable
clone()
(reflectively) on the given Cloneable
object.Constructor and Description |
---|
CloningProvider(T cloneable)
Constructs a provider which returns clone copies of the specified
Cloneable object. |
public CloningProvider(T cloneable)
Cloneable
object.cloneable
- the object to clonepublic T getObject()
ObjectProviderException
if any problems arise while
constructing/finding the object.getObject
in interface ObjectProvider<T extends Cloneable>
Copyright © 2005–2014 The Apache Software Foundation. All rights reserved.