Interface TypeAnnotationSerializerExtenderFallback
-
public interface TypeAnnotationSerializerExtenderFallbackInterface to be implemented to extend the functionality ofMetadataTypeserialization. The implementation of this class is highly recommended when using the default logic for fallback aTypeAnnotationnot found neither provided byTypeAnnotationSerializerExtender. This implementations will be located using SPI. If no implementation is provided the default mechanism that looks for aClasswith theannotationNamewill be used.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<Class<? extends TypeAnnotation>>fallbackFor(String annotationName)This method will allow to overrideMetadataTypeserialization to resolve theClassfor aTypeAnnotationby name in case if it was not already mapped in byTypeAnnotationSerializerExtender.
-
-
-
Method Detail
-
fallbackFor
Optional<Class<? extends TypeAnnotation>> fallbackFor(String annotationName)
This method will allow to overrideMetadataTypeserialization to resolve theClassfor aTypeAnnotationby name in case if it was not already mapped in byTypeAnnotationSerializerExtender.- Parameters:
annotationName- the name of theTypeAnnotation.- Returns:
- a
Classthat represents theTypeAnnotationorOptional.empty()which means that the entry will be ignored and not added to the serialization output.
-
-