Skip to content

Commit 49ce9b4

Browse files
committed
Update MappedParam.java
1 parent a7b8f36 commit 49ce9b4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

http-api/src/main/java/io/avaje/http/api/MappedParam.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import static java.lang.annotation.RetentionPolicy.SOURCE;
77

88
import java.lang.annotation.ElementType;
9+
import java.lang.annotation.Repeatable;
910
import java.lang.annotation.Retention;
1011
import java.lang.annotation.RetentionPolicy;
1112
import java.lang.annotation.Target;
@@ -18,6 +19,7 @@
1819
/** Factory method name used to construct the type. Empty means use a constructor */
1920
String factoryMethod() default "";
2021

22+
@Repeatable(MappedParam.Import.Imports.class)
2123
@Retention(SOURCE)
2224
@Target({TYPE, PACKAGE, MODULE})
2325
@interface Import {
@@ -26,5 +28,12 @@
2628

2729
/** Factory method name used to construct the type. Empty means use a constructor */
2830
String factoryMethod() default "";
31+
32+
@Retention(SOURCE)
33+
@Target({TYPE, PACKAGE, MODULE})
34+
@interface Imports {
35+
36+
Import[] value();
37+
}
2938
}
3039
}

0 commit comments

Comments
 (0)