rantav/hector — Issue #409: SerializerTypeInferrer could be smarter about loading serializers
Author: zznate
Created: 2012-02-01 20:19:25+00:00
State: open

There's no reason this cant be built on class inspection so as to decrease the maintenance burden. This would involve adding a hook to Serializer interface in order to deduce the raw type a given comparator handles.

Raw type deduction would actually make sense on top of the CompositeType bean in DDL package. That way a serializer could simply return it's raw type from the CompositeType as already implemented getCompositeType.

Cleanup required in this issue: AbstractSerializer *should not* implement getComparatorType for returning a default. This makes it too easy to break the contract and adds maintenance overhead.