|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ehcache.spi.serialization.DefaultSerializationProvider
public class DefaultSerializationProvider
| Constructor Summary | |
|---|---|
DefaultSerializationProvider(DefaultSerializationProviderConfiguration configuration)
|
|
| Method Summary | ||
|---|---|---|
|
createKeySerializer(java.lang.Class<T> clazz,
java.lang.ClassLoader classLoader,
ServiceConfiguration<?>... configs)
Creates a key Serializer with the given parameters. |
|
|
createValueSerializer(java.lang.Class<T> clazz,
java.lang.ClassLoader classLoader,
ServiceConfiguration<?>... configs)
Creates a value Serializer with the given parameters. |
|
void |
start(ServiceProvider serviceProvider)
Start this service using the provided configuration and ServiceProvider. |
|
void |
stop()
Stops this service. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSerializationProvider(DefaultSerializationProviderConfiguration configuration)
| Method Detail |
|---|
public <T> Serializer<T> createKeySerializer(java.lang.Class<T> clazz,
java.lang.ClassLoader classLoader,
ServiceConfiguration<?>... configs)
throws UnsupportedTypeException
SerializationProviderSerializer with the given parameters.
createKeySerializer in interface SerializationProviderT - the type serialized to serialize to/fromclazz - the class of the type to serialize to/fromclassLoader - the classloader to useconfigs - specific configuration
Serializer instance
UnsupportedTypeException - if a serializer cannot be created for the given type
public <T> Serializer<T> createValueSerializer(java.lang.Class<T> clazz,
java.lang.ClassLoader classLoader,
ServiceConfiguration<?>... configs)
throws UnsupportedTypeException
SerializationProviderSerializer with the given parameters.
createValueSerializer in interface SerializationProviderT - the type serialized to serialize to/fromclazz - the class of the type to serialize to/fromclassLoader - the classloader to useconfigs - specific configuration
Serializer instance
UnsupportedTypeException - if a serializer cannot be created for the given typepublic void start(ServiceProvider serviceProvider)
ServiceServiceProvider.
The goal of the service provider is to allow a service to use other services.
start in interface ServiceserviceProvider - the service provider.public void stop()
Service
stop in interface Service
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||