Interface CloneStrategy
-
- All Superinterfaces:
org.springframework.core.Ordered
public interface CloneStrategy extends org.springframework.core.OrderedStrategy for cloning objects
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> booleancanHandle(T object)Returns true, if this strategy implementation can handle the given object, otherwise false.<T> Tclone(T objectToClone)Clone given object
-
-
-
Method Detail
-
canHandle
<T> boolean canHandle(T object)
Returns true, if this strategy implementation can handle the given object, otherwise false.
-
clone
<T> T clone(T objectToClone) throws ObjectCloningExceptionClone given object- Parameters:
objectToClone- object to be cloned- Returns:
- cloned object
- Throws:
ObjectCloningException
-
-