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

gRPC - rework annotations #16908

Merged
merged 1 commit into from
Apr 30, 2021
Merged

Conversation

mkouba
Copy link
Contributor

@mkouba mkouba commented Apr 29, 2021

  • rename io.quarkus.grpc.runtime.annotations.GrpcService to
    io.quarkus.grpc.GrpcClient
  • the relevant literal class is now a static nested class
  • GrpcClient.value() is optional and the service name can be derived
    from the annotated element
  • introduce the io.quarkus.grpc.GrpcService CDI stereotype that can be
    used to mark a gRPC service class (instead of @Singleton)
  • update docs and tests
  • resolves Reconsider the name/usage of io.quarkus.grpc.runtime.annotations.GrpcService #16872

- rename io.quarkus.grpc.runtime.annotations.GrpcService to
io.quarkus.grpc.GrpcClient
- the relevant literal class is now a static nested class
- GrpcClient.value() is optional and the service name can be derived
from the annotated element
- introduce the io.quarkus.grpc.GrpcService CDI stereotype that can be
used to mark a gRPC service class (instead of @singleton)
- update docs and tests
- resolves quarkusio#16872
throw new DeploymentException(
"Invalid @GrpcService `" + injectionPoint.getTargetInfo() + "` - missing configuration key");
"Invalid @GrpcClient `" + injectionPoint.getTargetInfo() + "` - service name cannot be empty");
Copy link
Member

@michalszynkiewicz michalszynkiewicz Apr 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blank may be a better word

@michalszynkiewicz michalszynkiewicz marked this pull request as ready for review April 30, 2021 08:47
@michalszynkiewicz
Copy link
Member

Thanks @mkouba !

@michalszynkiewicz michalszynkiewicz merged commit cfd5d98 into quarkusio:main Apr 30, 2021
@quarkus-bot quarkus-bot bot added this to the 2.0 - main milestone Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reconsider the name/usage of io.quarkus.grpc.runtime.annotations.GrpcService
2 participants