Allow method parameters as target for @Input and @Output

So that they can qualify @Bean method arguments
This commit is contained in:
Marius Bogoevici
2015-08-19 21:35:24 -04:00
parent 2ab2d5c1a9
commit 1c57a85a52
2 changed files with 3 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ import org.springframework.beans.factory.annotation.Qualifier;
@Qualifier
@Target({ ElementType.FIELD, ElementType.METHOD,
ElementType.ANNOTATION_TYPE })
ElementType.ANNOTATION_TYPE, ElementType.PARAMETER })
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented

View File

@@ -33,7 +33,8 @@ import org.springframework.beans.factory.annotation.Qualifier;
*/
@Qualifier
@Target({ ElementType.FIELD, ElementType.METHOD})
@Target({ ElementType.FIELD, ElementType.METHOD,
ElementType.ANNOTATION_TYPE, ElementType.PARAMETER })
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented