@Retention(value=RUNTIME) @Target(value={ANNOTATION_TYPE,PARAMETER}) public @interface Param
Converter that should be used for parameter conversion.
Can also be used to create custom annotations.
example:
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.PARAMETER)
@Param(converter = FormattedDateConverter.class)
public @interface DateParam {
String format() default "dd.MM.yyyy";
}
Copyright © 2017 Pragmatists. All rights reserved.