net.sf.ehcache.store.compound
Class ImmutableValueElementCopyStrategy
java.lang.Object
   net.sf.ehcache.store.compound.ImmutableValueElementCopyStrategy
net.sf.ehcache.store.compound.ImmutableValueElementCopyStrategy
- All Implemented Interfaces: 
- Serializable, ReadWriteCopyStrategy<Element>
- public class ImmutableValueElementCopyStrategy 
- extends Object- implements ReadWriteCopyStrategy<Element>
- Author:
- Alex Snaps, Ludovic Orban
- See Also:
- Serialized Form
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ImmutableValueElementCopyStrategy
public ImmutableValueElementCopyStrategy()
copyForWrite
public Element copyForWrite(Element value,
                            ClassLoader loader)
- Description copied from interface: ReadWriteCopyStrategy
- Deep copies some object and returns an internal storage-ready copy
 
- 
- Specified by:
- copyForWritein interface- ReadWriteCopyStrategy<Element>
 
- 
- Parameters:
- value- the value to copy
- Returns:
- the storage-ready copy
 
copyForRead
public Element copyForRead(Element storedValue,
                           ClassLoader loader)
- Description copied from interface: ReadWriteCopyStrategy
- Reconstruct an object from its storage-ready copy.
 
- 
- Specified by:
- copyForReadin interface- ReadWriteCopyStrategy<Element>
 
- 
- Parameters:
- storedValue- the storage-ready copy
- Returns:
- the original object
 
Copyright 2001-2015, Terracotta, Inc.