org.ehcache.spi.copy
Interface CopyProvider

All Superinterfaces:
Service
All Known Implementing Classes:
DefaultCopyProvider

public interface CopyProvider
extends Service


Method Summary
<T> Copier<T>
createKeyCopier(java.lang.Class<T> clazz, Serializer<T> serializer, ServiceConfiguration<?>... configs)
          Creates a key Copier with the given parameters.
<T> Copier<T>
createValueCopier(java.lang.Class<T> clazz, Serializer<T> serializer, ServiceConfiguration<?>... configs)
          Creates a value Copier with the given parameters.
 
Methods inherited from interface org.ehcache.spi.service.Service
start, stop
 

Method Detail

createKeyCopier

<T> Copier<T> createKeyCopier(java.lang.Class<T> clazz,
                              Serializer<T> serializer,
                              ServiceConfiguration<?>... configs)
Creates a key Copier with the given parameters.

Type Parameters:
T - the type to copy to/from
Parameters:
clazz - the class of the type to copy to/from
serializer - the serializer that can be used to perform the copying. The usage is optional though.
configs - specific configurations
Returns:
a Copier instance

createValueCopier

<T> Copier<T> createValueCopier(java.lang.Class<T> clazz,
                                Serializer<T> serializer,
                                ServiceConfiguration<?>... configs)
Creates a value Copier with the given parameters.

Type Parameters:
T - the type to copy to/from
Parameters:
clazz - the class of the type to copy to/from
serializer - the serializer that can be used to perform the copying. The usage is optional though.
configs - specific configurations
Returns:
a Copier instance