Top Fields Constructors Methods
net.sf.ehcache.store.compound

public Class ImmutableValueElementCopyStrategy

extends Object
implements ReadWriteCopyStrategy<Element>
Class Inheritance
All Implemented Interfaces
net.sf.ehcache.store.compound.ReadWriteCopyStrategy, java.io.Serializable
Imports
net.sf.ehcache.Element

Authors
Alex Snaps, Ludovic Orban

Field Summary

Modifier and TypeField and Description
private final ReadWriteSerializationCopyStrategy
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Element

Returns:

the original object
copyForRead
(Element
the storage-ready copy
storedValue
,
ClassLoader loader)

Implements net.sf.ehcache.store.compound.ReadWriteCopyStrategy.copyForRead.

Reconstruct an object from its storage-ready copy.
public Element

Returns:

the storage-ready copy
copyForWrite
(Element
the value to copy
value
,
ClassLoader loader)

Implements net.sf.ehcache.store.compound.ReadWriteCopyStrategy.copyForWrite.

Deep copies some object and returns an internal storage-ready copy
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

copyStrategyback to summary
private final ReadWriteSerializationCopyStrategy copyStrategy
serialVersionUIDback to summary
private static final long serialVersionUID

Hides net.sf.ehcache.store.compound.ReadWriteCopyStrategy.serialVersionUID.

Constructor Detail

ImmutableValueElementCopyStrategyback to summary
public ImmutableValueElementCopyStrategy()

Method Detail

copyForReadback to summary
public Element copyForRead(Element storedValue, ClassLoader loader)

Implements net.sf.ehcache.store.compound.ReadWriteCopyStrategy.copyForRead.

Reconstruct an object from its storage-ready copy.

Parameters
storedValue:Element

the storage-ready copy

Returns:Element

the original object

copyForWriteback to summary
public Element copyForWrite(Element value, ClassLoader loader)

Implements net.sf.ehcache.store.compound.ReadWriteCopyStrategy.copyForWrite.

Deep copies some object and returns an internal storage-ready copy

Parameters
value:Element

the value to copy

Returns:Element

the storage-ready copy