Package io.micronaut.inject.annotation
Interface PackageRenameRemapper
-
- All Superinterfaces:
AnnotationRemapper
public interface PackageRenameRemapper extends AnnotationRemapper
AAnnotationRemapper
that simply renames packages retaining the original simple class names as is.- Since:
- 1.1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.String
getTargetPackage()
default 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 interface io.micronaut.inject.annotation.AnnotationRemapper
getPackageName
-
-
-
-
Method Detail
-
getTargetPackage
@NonNull java.lang.String getTargetPackage()
- Returns:
- The target package name.
-
remap
default 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 interfaceAnnotationRemapper
- Parameters:
annotation
- The annotation valuesvisitorContext
- The context that is being visited- Returns:
- A list of zero or many annotations and values to map to
-
-