Class PersistenceContextAnnotationMapper

  • All Implemented Interfaces:
    io.micronaut.core.naming.Named, AnnotationMapper<java.lang.annotation.Annotation>, NamedAnnotationMapper

    @Internal
    public final class PersistenceContextAnnotationMapper
    extends java.lang.Object
    implements NamedAnnotationMapper
    Allows using the PersistenceContext annotation in Micronaut.
    Since:
    1.0
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PersistenceContextAnnotationMapper

        public PersistenceContextAnnotationMapper()
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface io.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 interface AnnotationMapper<java.lang.annotation.Annotation>
        Parameters:
        annotation - The annotation values
        visitorContext - The context that is being visited
        Returns:
        A list of zero or many annotations and values to map to