{8.1.0-new, 8.1.3-updated, 8.2.0-updated} Configurable Annotations
All configurable properties described in the previous section have annotation equivalents that can be applied on classes or methods.
In the section on the REST server API, we describe how to configure serializers and parsers using
However, an even easier way to configure serializers and parsers are to used provided specialized
Config annotations are provided for all serializers and parsers:
Config annotations defined on classes and methods can be applied to serializers and parsers using the following methods:
The following example shows how annotations defined on a dummy class can be applied to a serializer:
Annotations can also be applied directly to serializers and parsers using the following method:
The following example shows a concrete implementation of an interface can be applied to a serializer:
The following concrete annotation implementation are provided:
Any number of matching config or concrete annotations can be applied. They are applied in the order they are provided to the context. Therefore any values can be overridden. Config and concrete annotations also override any class or method level annotations