org.ehcache.transactions.xa
Class SoftLockValueCombinedCopier<T>

java.lang.Object
  extended by org.ehcache.transactions.xa.SoftLockValueCombinedCopier<T>
All Implemented Interfaces:
Copier<SoftLock<T>>

public class SoftLockValueCombinedCopier<T>
extends java.lang.Object
implements Copier<SoftLock<T>>

The Copier that is responsible for copying a SoftLock containing a value.


Constructor Summary
SoftLockValueCombinedCopier(Copier<T> valueCopier)
           
 
Method Summary
 SoftLock<T> copyForRead(SoftLock<T> obj)
          Creates a copy of the instance passed in.
 SoftLock<T> copyForWrite(SoftLock<T> obj)
          Creates a copy of the instance passed in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoftLockValueCombinedCopier

public SoftLockValueCombinedCopier(Copier<T> valueCopier)
Method Detail

copyForRead

public SoftLock<T> copyForRead(SoftLock<T> obj)
Description copied from interface: Copier
Creates a copy of the instance passed in.

Specified by:
copyForRead in interface Copier<SoftLock<T>>
Parameters:
obj - the instance to copy
Returns:
the copy of the obj instance

copyForWrite

public SoftLock<T> copyForWrite(SoftLock<T> obj)
Description copied from interface: Copier
Creates a copy of the instance passed in.

Specified by:
copyForWrite in interface Copier<SoftLock<T>>
Parameters:
obj - the instance to copy
Returns:
the copy of the obj instance