use of com.hazelcast.internal.serialization.impl.SerializerAdapter in project hazelcast by hazelcast.
the class DelegatingSerializationService method serializerFor.
@Override
public SerializerAdapter serializerFor(Object object, boolean includeSchema) {
Class<?> clazz = object == null ? null : object.getClass();
SerializerAdapter serializer = null;
if (clazz != null) {
serializer = serializersByClass.get(clazz);
}
if (serializer == null) {
try {
serializer = delegate.serializerFor(object, includeSchema);
} catch (HazelcastSerializationException hse) {
throw serializationException(clazz, hse);
}
}
if (serializer == null) {
throw active ? serializationException(clazz) : new HazelcastInstanceNotActiveException();
}
return serializer;
}
Aggregations