public class LegacyCopyStrategyAdapter extends Object implements ReadWriteCopyStrategy<Element>
Constructor and Description |
---|
LegacyCopyStrategyAdapter(CopyStrategy legacyCopyStrategy)
create a LegacyCopyStrategyAdapter
|
Modifier and Type | Method and Description |
---|---|
Element |
copyForRead(Element storedValue,
ClassLoader loader)
Reconstruct an object from its storage-ready copy.
|
Element |
copyForWrite(Element value,
ClassLoader loader)
Deep copies some object and returns an internal storage-ready copy
|
public LegacyCopyStrategyAdapter(CopyStrategy legacyCopyStrategy)
legacyCopyStrategy
- the legacy CopyStrategy to adaptpublic Element copyForWrite(Element value, ClassLoader loader)
copyForWrite
in interface ReadWriteCopyStrategy<Element>
value
- the value to copypublic Element copyForRead(Element storedValue, ClassLoader loader)
copyForRead
in interface ReadWriteCopyStrategy<Element>
storedValue
- the storage-ready copyCopyright © 2003–2016 Terracotta, Inc.. All rights reserved.