Class JakartaRemapper

  • All Implemented Interfaces:
    AnnotationRemapper

    @Internal
    public final class JakartaRemapper
    extends java.lang.Object
    implements AnnotationRemapper
    Remaps from jakarta.inject to javax.inject.
    • Constructor Summary

      Constructors 
      Constructor Description
      JakartaRemapper()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPackageName()  
      java.util.List<io.micronaut.core.annotation.AnnotationValue<?>> remap​(io.micronaut.core.annotation.AnnotationValue<?> 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

      • JakartaRemapper

        public JakartaRemapper()
    • Method Detail

      • getPackageName

        @NonNull
        public java.lang.String getPackageName()
        Specified by:
        getPackageName in interface AnnotationRemapper
        Returns:
        The package name of the annotation.
      • remap

        @NonNull
        public java.util.List<io.micronaut.core.annotation.AnnotationValue<?>> remap​(io.micronaut.core.annotation.AnnotationValue<?> annotation,
                                                                                     VisitorContext visitorContext)
        Description copied from interface: AnnotationRemapper
        The map method will be called for each instances of the annotation returned via this method.
        Specified by:
        remap in interface AnnotationRemapper
        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