Class SerializationStrategyLeanImpl
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.strategies.SerializationStrategyLeanImpl
-
- All Implemented Interfaces:
SerializationStrategy,java.io.Serializable
public class SerializationStrategyLeanImpl extends java.lang.Object implements SerializationStrategy
Allow serialization of items to be overridden by strategies (See JIRA issue HOR-104, HOR-106)- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSerializationStrategyLeanImpl.LeanItemModelHandlerThe Class LeanItemModelHandler.
-
Constructor Summary
Constructors Constructor Description SerializationStrategyLeanImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectreadResolve(AbstractItemModel aim)Called when wanting to deserialize the AbstractItemModel aimjava.lang.ObjectwriteReplace(AbstractItemModel aim)Called when serializing the AbstractItemModel aim
-
-
-
Method Detail
-
readResolve
public java.lang.Object readResolve(AbstractItemModel aim) throws java.io.ObjectStreamException
Description copied from interface:SerializationStrategyCalled when wanting to deserialize the AbstractItemModel aim- Specified by:
readResolvein interfaceSerializationStrategy- Parameters:
aim- the AbstractItemModel to deserialize- Returns:
- The (possibly different) object that will be deserialized
- Throws:
java.io.ObjectStreamException
-
writeReplace
public java.lang.Object writeReplace(AbstractItemModel aim) throws java.io.ObjectStreamException
Description copied from interface:SerializationStrategyCalled when serializing the AbstractItemModel aim- Specified by:
writeReplacein interfaceSerializationStrategy- Parameters:
aim- the AbstractItemModel to serialize- Returns:
- The (possibly different) object that will be serialized
- Throws:
java.io.ObjectStreamException
-
-