Class EntityReflectiveAccessAnnotationMapper
- java.lang.Object
-
- io.micronaut.inject.beans.visitor.EntityReflectiveAccessAnnotationMapper
-
- All Implemented Interfaces:
io.micronaut.core.naming.Named
,AnnotationMapper<java.lang.annotation.Annotation>
,NamedAnnotationMapper
public class EntityReflectiveAccessAnnotationMapper extends java.lang.Object implements NamedAnnotationMapper
An annotation mapper that improves reflective access for JPA entities.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description EntityReflectiveAccessAnnotationMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
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:
getName
in 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:AnnotationMapper
The map method will be called for each instances of the annotation returned via this method.- Specified by:
map
in 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
-
-