GigaSpaces XAP 9.5 API

org.openspaces.persistency.cassandra.meta.types
Class SerializerProvider

java.lang.Object
  extended by org.openspaces.persistency.cassandra.meta.types.SerializerProvider

public class SerializerProvider
extends Object

A map based Serializer provider inspired by hector's SerializerTypeInferer

Since:
9.1.1
Author:
Dan Kilman

Constructor Summary
SerializerProvider()
           
 
Method Summary
static
<T>
getSerializer(Class<?> type)
           
static boolean isCommonJavaType(Class<?> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializerProvider

public SerializerProvider()
Method Detail

getSerializer

public static <T>  getSerializer(Class<?> type)
Parameters:
type - The type used to infer the matchin Serializer
Returns:
The matching Serializer and ObjectSerializer if no matching serializer is found.

isCommonJavaType

public static boolean isCommonJavaType(Class<?> type)
Parameters:
type - The type to test.
Returns:
true if this type is serialized using ObjectSerializer

GigaSpaces XAP 9.5 API

Copyright © GigaSpaces.