Class FuryCloner
java.lang.Object
com.broadleafcommerce.common.extension.serialization.FuryCloner
- All Implemented Interfaces:
Cloner,org.springframework.beans.factory.InitializingBean
public class FuryCloner
extends Object
implements org.springframework.beans.factory.InitializingBean, Cloner
An implementation of the
Cloner interface that provides functionality for deep cloning
objects using the Fury serialization library.
This class is designed to be thread-safe by utilizing a thread-safe Fury instance. The Fury
instance is configured with properties specified in the SerializationProperties.Cloning
object.
As part of the Spring lifecycle, this class implements InitializingBean to initialize the
Fury instance after properties are set.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid<T> TdeepClone(T source) Creates a deep copy of the provided object.
-
Constructor Details
-
FuryCloner
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
deepClone
@Nullable public <T> T deepClone(@Nullable T source) Description copied from interface:ClonerCreates a deep copy of the provided object. This method performs a deep clone operation, replicating the object along with its internal state.
-