org.ehcache.impl.copy
Class SerializingCopier<T>

java.lang.Object
  extended by org.ehcache.impl.copy.ReadWriteCopier<T>
      extended by org.ehcache.impl.copy.SerializingCopier<T>
All Implemented Interfaces:
Copier<T>

public final class SerializingCopier<T>
extends ReadWriteCopier<T>

A helper copier implementation that performs the "copying" using serialization.


Constructor Summary
SerializingCopier(Serializer<T> serializer)
           
 
Method Summary
 T copy(T obj)
           
 Serializer<T> getSerializer()
           
 
Methods inherited from class org.ehcache.impl.copy.ReadWriteCopier
copyForRead, copyForWrite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializingCopier

public SerializingCopier(Serializer<T> serializer)
Method Detail

copy

public T copy(T obj)
Specified by:
copy in class ReadWriteCopier<T>

getSerializer

public Serializer<T> getSerializer()