Package org.ehcache.impl.copy
Class ReadWriteCopier<T>
java.lang.Object
org.ehcache.impl.copy.ReadWriteCopier<T>
- All Implemented Interfaces:
org.ehcache.spi.copy.Copier<T>
- Direct Known Subclasses:
IdentityCopier,SerializingCopier
A helper
Copier implementation that can be extended directly
if the copying operation is the same irrespective of the action
performed (read or write).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TTemplate copy method to be implemented by sub-classes.copyForRead(T obj) copyForWrite(T obj)
-
Constructor Details
-
ReadWriteCopier
public ReadWriteCopier()
-
-
Method Details
-
copyForRead
- Specified by:
copyForReadin interfaceorg.ehcache.spi.copy.Copier<T>
-
copyForWrite
- Specified by:
copyForWritein interfaceorg.ehcache.spi.copy.Copier<T>
-
copy
Template copy method to be implemented by sub-classes.It will be invoked when
copyForRead(Object)orcopyForWrite(Object)is invoked onCopier.- Parameters:
obj- the instance to copy- Returns:
- a copied instance, depending on the implementation
-