public interface TypeAnnotationSerializerExtenderFallback
MetadataType serialization. The implementation of this class
is highly recommended when using the default logic for fallback a TypeAnnotation not found neither provided by
TypeAnnotationSerializerExtender. This implementations will be located using SPI. If no implementation is provided the
default mechanism that looks for a Class with the annotationName will be used.| Modifier and Type | Method and Description |
|---|---|
Optional<Class<? extends TypeAnnotation>> |
fallbackFor(String annotationName)
This method will allow to override
MetadataType serialization to resolve the Class for a
TypeAnnotation by name in case if it was not already mapped in by TypeAnnotationSerializerExtender. |
Optional<Class<? extends TypeAnnotation>> fallbackFor(String annotationName)
MetadataType serialization to resolve the Class for a
TypeAnnotation by name in case if it was not already mapped in by TypeAnnotationSerializerExtender.annotationName - the name of the TypeAnnotation.Class that represents the TypeAnnotation or Optional.empty() which means that the entry
will be ignored and not added to the serialization output.Copyright © 2024 MuleSoft, Inc.. All rights reserved.