Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

to support annotation attributes override for @Service and @Reference #4075

Closed
dhchao11 opened this issue May 16, 2019 · 0 comments
Closed
Milestone

Comments

@dhchao11
Copy link
Contributor

at some cases, i want to define a new annotation class that is annotated with @reference, and in the new class, i use AliasFor for attribute override, but it does not work. i want to pull a request and enhance this function.

the sample code is like this: i want to redefine the group name to n"dubbo"

`@Documented
@retention(RetentionPolicy.RUNTIME)
@target({ElementType.FIELD, ElementType.METHOD})
@reference
public @interface SelfDefineReference {

@AliasFor(annotation = Reference.class, attribute = "group")
String group() default "dubbo";

}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants