T - the type which the configured copier can handlepublic class DefaultCopierConfiguration<T>
extends org.ehcache.impl.internal.classes.ClassInstanceConfiguration<org.ehcache.spi.copy.Copier<T>>
implements org.ehcache.spi.service.ServiceConfiguration<org.ehcache.spi.copy.CopyProvider,java.lang.Void>
ServiceConfiguration for the default CopyProvider implementation.
Enables configuring a Copier for the key or value of a given cache.
This class overrides the default ServiceConfiguration.compatibleWith(ServiceConfiguration) implementation
to allow for independent configuration of the key and value copiers.
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultCopierConfiguration.Type
Copy provider types
|
| Constructor and Description |
|---|
DefaultCopierConfiguration(java.lang.Class<? extends org.ehcache.spi.copy.Copier<T>> clazz,
DefaultCopierConfiguration.Type type)
Creates a new configuration with the given
Copier class of the provided DefaultCopierConfiguration.Type. |
DefaultCopierConfiguration(org.ehcache.spi.copy.Copier<T> instance,
DefaultCopierConfiguration.Type type)
Creates a new configuration with the given
Copier instance of the provided DefaultCopierConfiguration.Type. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compatibleWith(org.ehcache.spi.service.ServiceConfiguration<?,?> other) |
java.lang.Class<org.ehcache.spi.copy.CopyProvider> |
getServiceType() |
DefaultCopierConfiguration.Type |
getType()
Returns the
DefaultCopierConfiguration.Type of this configuration |
getArguments, getClazz, getInstancepublic DefaultCopierConfiguration(java.lang.Class<? extends org.ehcache.spi.copy.Copier<T>> clazz, DefaultCopierConfiguration.Type type)
Copier class of the provided DefaultCopierConfiguration.Type.clazz - the copier classtype - the copier type - key or valuepublic DefaultCopierConfiguration(org.ehcache.spi.copy.Copier<T> instance, DefaultCopierConfiguration.Type type)
Copier instance of the provided DefaultCopierConfiguration.Type.instance - the copier instancetype - the copier type - key or valuepublic java.lang.Class<org.ehcache.spi.copy.CopyProvider> getServiceType()
getServiceType in interface org.ehcache.spi.service.ServiceConfiguration<org.ehcache.spi.copy.CopyProvider,java.lang.Void>public boolean compatibleWith(org.ehcache.spi.service.ServiceConfiguration<?,?> other)
compatibleWith in interface org.ehcache.spi.service.ServiceConfiguration<org.ehcache.spi.copy.CopyProvider,java.lang.Void>public DefaultCopierConfiguration.Type getType()
DefaultCopierConfiguration.Type of this configuration