[ Full content available at: https://github.com/apache/avro/pull/329 ]

Fixes AVRO-1891, AVRO-2065

Adds support for pluggable conversion classes -- new feature

Changes the compiler to add used conversions to the SpecificData instance 
already stored in the generated class.

Adds static utility methods in SpecificData for getting the correct 
SpecificData instance from a class or a schema (using reflection).

Adds calls to these utility methods from contexts where the schema is known.

Also:
Adds a possibility to add custom conversion classes to the compiler using a 
parameter to the Maven plugin. The custom conversion instances used are stored 
in the generated class with the same mechanism as above. They must of course be 
on the classpath at compile and serde time and whenever else the generated 
class is used. This feature is not required for the bug fixes to work but the 
addition is not large and IMO it adds nice value.

Not implemented yet:
* Custom conversions support needs to be added to the compiler tool. It is only 
available when using the Maven plugin ATM.

(This message was relayed via gitbox.apache.org for [email protected])

Reply via email to