Class JavaxRemapper

java.lang.Object
io.micronaut.inject.annotation.internal.JavaxRemapper
All Implemented Interfaces:
AnnotationRemapper

@Internal public final class JavaxRemapper extends Object implements AnnotationRemapper
Remaps from javax.inject to jakarta.inject.
  • Constructor Details

    • JavaxRemapper

      public JavaxRemapper()
  • Method Details

    • getPackageName

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

      public @NonNull List<AnnotationValue<?>> remap(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