public class SerializerProvider extends Object
Serializer
provider inspired by hector's SerializerTypeInferer
Constructor and Description |
---|
SerializerProvider() |
Modifier and Type | Method and Description |
---|---|
static me.prettyprint.hector.api.Serializer<Object> |
getObjectSerializer() |
static <T> me.prettyprint.hector.api.Serializer<T> |
getSerializer(Class<?> type) |
static boolean |
isCommonJavaType(Class<?> type) |
public static <T> me.prettyprint.hector.api.Serializer<T> getSerializer(Class<?> type)
type
- The type used to infer the matchin Serializer
Serializer
and ObjectSerializer
if no matching
serializer is found.public static me.prettyprint.hector.api.Serializer<Object> getObjectSerializer()
public static boolean isCommonJavaType(Class<?> type)
type
- The type to test.true
if this type is serialized using ObjectSerializer
Copyright © GigaSpaces.