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

public Class LegacyCopyStrategyAdapter

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

ReadWriteCopyStrategy adaptor for a legacy CopyStrategy instance
Author
Ludovic Orban

Field Summary

Modifier and TypeField and Description
private final CopyStrategy
legacyCopyStrategy

Deprecated as a consequence of CopyStrategy being deprecated.
private static final long

Constructor Summary

AccessConstructor and Description
public
LegacyCopyStrategyAdapter(CopyStrategy
the legacy CopyStrategy to adapt
legacyCopyStrategy
)

Deprecated as a consequence of CopyStrategy being deprecated.
create a LegacyCopyStrategyAdapter

Method Summary

Modifier and TypeMethod and Description
public Element
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
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

legacyCopyStrategyback to summary
private final CopyStrategy legacyCopyStrategy

Deprecated

as a consequence of CopyStrategy being deprecated. See corresponding docs for further information.

serialVersionUIDback to summary
private static final long serialVersionUID

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

Constructor Detail

LegacyCopyStrategyAdapterback to summary
public LegacyCopyStrategyAdapter(CopyStrategy legacyCopyStrategy)

Deprecated

as a consequence of CopyStrategy being deprecated. See corresponding docs for further information.

create a LegacyCopyStrategyAdapter

Parameters
legacyCopyStrategy:CopyStrategy

the legacy CopyStrategy to adapt

Method Detail

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

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

Doc from 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.

Doc from 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