Class JsonCreatorAnnotationMapper
- java.lang.Object
-
- io.micronaut.inject.beans.visitor.JsonCreatorAnnotationMapper
-
- All Implemented Interfaces:
io.micronaut.core.naming.Named,AnnotationMapper<java.lang.annotation.Annotation>,NamedAnnotationMapper
public class JsonCreatorAnnotationMapper extends java.lang.Object implements NamedAnnotationMapper
Makes every use of Jackson's JsonCreator also represent aCreator.- Since:
- 1.1
-
-
Constructor Summary
Constructors Constructor Description JsonCreatorAnnotationMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()java.util.List<io.micronaut.core.annotation.AnnotationValue<?>>map(io.micronaut.core.annotation.AnnotationValue<java.lang.annotation.Annotation> annotation, VisitorContext visitorContext)The map method will be called for each instances of the annotation returned via this method.
-
-
-
Method Detail
-
getName
@NonNull public java.lang.String getName()
- Specified by:
getNamein interfaceio.micronaut.core.naming.Named
-
map
public java.util.List<io.micronaut.core.annotation.AnnotationValue<?>> map(io.micronaut.core.annotation.AnnotationValue<java.lang.annotation.Annotation> annotation, VisitorContext visitorContext)Description copied from interface:AnnotationMapperThe map method will be called for each instances of the annotation returned via this method.- Specified by:
mapin interfaceAnnotationMapper<java.lang.annotation.Annotation>- Parameters:
annotation- The annotation valuesvisitorContext- The context that is being visited- Returns:
- A list of zero or many annotations and values to map to
-
-