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

Support for @Attribute in annotated services #937

Closed
ikhoon opened this issue Mar 18, 2024 · 1 comment
Closed

Support for @Attribute in annotated services #937

ikhoon opened this issue Mar 18, 2024 · 1 comment

Comments

@ikhoon
Copy link
Contributor

ikhoon commented Mar 18, 2024

It would be good to support @Attribute annotation to declaratively inject the attributes in ServiceRequestContext.attr(key) into annotated services.

class MyService {

  @Get("/")
  public String hello(@Attribute("myAttribute") String myAttribute, ...) {
     ...
  }

}
@ikhoon
Copy link
Contributor Author

ikhoon commented Mar 18, 2024

Oops... it should be created in the Armeria repo. 😅

@ikhoon ikhoon closed this as completed Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant