|
|
@ -199,7 +199,7 @@ public class AnnotationsPropertySourceTests {
|
|
|
|
|
|
|
|
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@PropertyMapping
|
|
|
|
@PropertyMapping
|
|
|
|
static @interface TypeLevelAnnotation {
|
|
|
|
@interface TypeLevelAnnotation {
|
|
|
|
|
|
|
|
|
|
|
|
String value();
|
|
|
|
String value();
|
|
|
|
|
|
|
|
|
|
|
@ -212,7 +212,7 @@ public class AnnotationsPropertySourceTests {
|
|
|
|
|
|
|
|
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@PropertyMapping("test")
|
|
|
|
@PropertyMapping("test")
|
|
|
|
static @interface TypeLevelWithPrefixAnnotation {
|
|
|
|
@interface TypeLevelWithPrefixAnnotation {
|
|
|
|
|
|
|
|
|
|
|
|
String value();
|
|
|
|
String value();
|
|
|
|
|
|
|
|
|
|
|
@ -224,7 +224,7 @@ public class AnnotationsPropertySourceTests {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
static @interface AttributeLevelWithPrefixAnnotation {
|
|
|
|
@interface AttributeLevelWithPrefixAnnotation {
|
|
|
|
|
|
|
|
|
|
|
|
@PropertyMapping("test")
|
|
|
|
@PropertyMapping("test")
|
|
|
|
String value();
|
|
|
|
String value();
|
|
|
@ -238,7 +238,7 @@ public class AnnotationsPropertySourceTests {
|
|
|
|
|
|
|
|
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@PropertyMapping("test")
|
|
|
|
@PropertyMapping("test")
|
|
|
|
static @interface TypeAndAttributeLevelWithPrefixAnnotation {
|
|
|
|
@interface TypeAndAttributeLevelWithPrefixAnnotation {
|
|
|
|
|
|
|
|
|
|
|
|
@PropertyMapping("example")
|
|
|
|
@PropertyMapping("example")
|
|
|
|
String value();
|
|
|
|
String value();
|
|
|
@ -252,7 +252,7 @@ public class AnnotationsPropertySourceTests {
|
|
|
|
|
|
|
|
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@PropertyMapping(skip = SkipPropertyMapping.YES)
|
|
|
|
@PropertyMapping(skip = SkipPropertyMapping.YES)
|
|
|
|
static @interface NotMappedAtTypeLevelAnnotation {
|
|
|
|
@interface NotMappedAtTypeLevelAnnotation {
|
|
|
|
|
|
|
|
|
|
|
|
@PropertyMapping
|
|
|
|
@PropertyMapping
|
|
|
|
String value();
|
|
|
|
String value();
|
|
|
@ -268,7 +268,7 @@ public class AnnotationsPropertySourceTests {
|
|
|
|
|
|
|
|
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@PropertyMapping
|
|
|
|
@PropertyMapping
|
|
|
|
static @interface NotMappedAtAttributeLevelAnnotation {
|
|
|
|
@interface NotMappedAtAttributeLevelAnnotation {
|
|
|
|
|
|
|
|
|
|
|
|
String value();
|
|
|
|
String value();
|
|
|
|
|
|
|
|
|
|
|
@ -286,7 +286,7 @@ public class AnnotationsPropertySourceTests {
|
|
|
|
|
|
|
|
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@PropertyMapping
|
|
|
|
@PropertyMapping
|
|
|
|
static @interface ArraysAnnotation {
|
|
|
|
@interface ArraysAnnotation {
|
|
|
|
|
|
|
|
|
|
|
|
String[] strings();
|
|
|
|
String[] strings();
|
|
|
|
|
|
|
|
|
|
|
@ -311,7 +311,7 @@ public class AnnotationsPropertySourceTests {
|
|
|
|
|
|
|
|
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@PropertyMapping
|
|
|
|
@PropertyMapping
|
|
|
|
static @interface CamelCaseToKebabCaseAnnotation {
|
|
|
|
@interface CamelCaseToKebabCaseAnnotation {
|
|
|
|
|
|
|
|
|
|
|
|
String camelCaseToKebabCase() default "abc";
|
|
|
|
String camelCaseToKebabCase() default "abc";
|
|
|
|
|
|
|
|
|
|
|
@ -324,7 +324,7 @@ public class AnnotationsPropertySourceTests {
|
|
|
|
|
|
|
|
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@TypeLevelAnnotation("foo")
|
|
|
|
@TypeLevelAnnotation("foo")
|
|
|
|
static @interface PropertiesFromSingleMetaAnnotationAnnotation {
|
|
|
|
@interface PropertiesFromSingleMetaAnnotationAnnotation {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -337,7 +337,7 @@ public class AnnotationsPropertySourceTests {
|
|
|
|
@TypeLevelAnnotation("alpha")
|
|
|
|
@TypeLevelAnnotation("alpha")
|
|
|
|
@TypeLevelWithPrefixAnnotation("bravo")
|
|
|
|
@TypeLevelWithPrefixAnnotation("bravo")
|
|
|
|
@TypeAndAttributeLevelWithPrefixAnnotation("charlie")
|
|
|
|
@TypeAndAttributeLevelWithPrefixAnnotation("charlie")
|
|
|
|
static @interface PropertiesFromMultipleMetaAnnotationsAnnotation {
|
|
|
|
@interface PropertiesFromMultipleMetaAnnotationsAnnotation {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -348,7 +348,7 @@ public class AnnotationsPropertySourceTests {
|
|
|
|
|
|
|
|
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@AliasedAttributeAnnotation
|
|
|
|
@AliasedAttributeAnnotation
|
|
|
|
static @interface AttributeWithAliasAnnotation {
|
|
|
|
@interface AttributeWithAliasAnnotation {
|
|
|
|
|
|
|
|
|
|
|
|
@AliasFor(annotation = AliasedAttributeAnnotation.class)
|
|
|
|
@AliasFor(annotation = AliasedAttributeAnnotation.class)
|
|
|
|
String value() default "foo";
|
|
|
|
String value() default "foo";
|
|
|
@ -359,7 +359,7 @@ public class AnnotationsPropertySourceTests {
|
|
|
|
|
|
|
|
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@PropertyMapping("aliasing")
|
|
|
|
@PropertyMapping("aliasing")
|
|
|
|
static @interface AliasedAttributeAnnotation {
|
|
|
|
@interface AliasedAttributeAnnotation {
|
|
|
|
|
|
|
|
|
|
|
|
String value() default "bar";
|
|
|
|
String value() default "bar";
|
|
|
|
|
|
|
|
|
|
|
@ -367,7 +367,7 @@ public class AnnotationsPropertySourceTests {
|
|
|
|
|
|
|
|
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@SelfAnnotating
|
|
|
|
@SelfAnnotating
|
|
|
|
static @interface SelfAnnotating {
|
|
|
|
@interface SelfAnnotating {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -397,7 +397,7 @@ public class AnnotationsPropertySourceTests {
|
|
|
|
|
|
|
|
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@PropertyMapping("testenum")
|
|
|
|
@PropertyMapping("testenum")
|
|
|
|
static @interface EnumAnnotation {
|
|
|
|
@interface EnumAnnotation {
|
|
|
|
|
|
|
|
|
|
|
|
@PropertyMapping(skip = SkipPropertyMapping.ON_DEFAULT_VALUE)
|
|
|
|
@PropertyMapping(skip = SkipPropertyMapping.ON_DEFAULT_VALUE)
|
|
|
|
EnumItem value() default EnumItem.DEFAULT;
|
|
|
|
EnumItem value() default EnumItem.DEFAULT;
|
|
|
|