Class JakartaPersistenceContextAnnotationMapper
java.lang.Object
io.micronaut.inject.annotation.internal.JakartaPersistenceContextAnnotationMapper
- All Implemented Interfaces:
Named,AnnotationMapper<Annotation>,NamedAnnotationMapper
@Internal
public final class JakartaPersistenceContextAnnotationMapper
extends Object
implements NamedAnnotationMapper
Allows using the `jakarta.persistence.PersistenceContext` annotation in Micronaut.
- Since:
- 4.0.0
- Author:
- Denis Stepanov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()List<AnnotationValue<?>>map(AnnotationValue<Annotation> annotation, VisitorContext visitorContext) The map method will be called for each instances of the annotation returned via this method.
-
Constructor Details
-
JakartaPersistenceContextAnnotationMapper
public JakartaPersistenceContextAnnotationMapper()
-
-
Method Details
-
getName
-
map
public List<AnnotationValue<?>> map(AnnotationValue<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<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
-