Package net.sf.ehcache.store.compound
Class NullReadWriteCopyStrategy
- java.lang.Object
-
- net.sf.ehcache.store.compound.NullReadWriteCopyStrategy
-
- All Implemented Interfaces:
java.io.Serializable,ReadWriteCopyStrategy<Element>
public class NullReadWriteCopyStrategy extends java.lang.Object implements ReadWriteCopyStrategy<Element>
No-op copy strategy- Author:
- teck
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NullReadWriteCopyStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementcopyForRead(Element storedValue, java.lang.ClassLoader loader)Reconstruct an object from its storage-ready copy.ElementcopyForWrite(Element value, java.lang.ClassLoader loader)Deep copies some object and returns an internal storage-ready copy
-
-
-
Method Detail
-
copyForWrite
public Element copyForWrite(Element value, java.lang.ClassLoader loader)
Deep copies some object and returns an internal storage-ready copy- Specified by:
copyForWritein interfaceReadWriteCopyStrategy<Element>- Parameters:
value- the value to copy- Returns:
- the storage-ready copy
-
copyForRead
public Element copyForRead(Element storedValue, java.lang.ClassLoader loader)
Reconstruct an object from its storage-ready copy.- Specified by:
copyForReadin interfaceReadWriteCopyStrategy<Element>- Parameters:
storedValue- the storage-ready copy- Returns:
- the original object
-
-