question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow @GRpcService on @Bean factory methods

See original GitHub issue

I wonder if it’s high effort to implement such feature

For example we use a mix of dependency-injection approaches/recommendations, as the result, we already have a factory that produces GrpcServices. Would be nice if we could reuse everywhere and make sure that our tests use the same code/config as prod code

@GRpcService
@Bean 
public MyGrpcService myGrpcService(ApplicationFactory factory) {
    factory.getMyGrpcService()
}

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
jvmletcommented, Nov 15, 2021

With SB 2.5.x this should work OOTB. Will try to confirm tomorrow

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow GrpcService on @Bean methods · Issue #406 - GitHub
The problem GrpcService is only applicable to types. The solution Allow GrpcService on methods, so that it can be used in @Configuration ...
Read more >
Configuration | grpc-spring-boot-starter - GitHub Pages
The grpc client configurer allows you to add your custom configuration to grpc's ManagedChannelBuilder s. @Bean public GrpcChannelConfigurer ...
Read more >
Creating Spring Beans Through Factory Methods - Baeldung
In this tutorial, we will delve into creating Spring beans using both instance and static factory methods. 2. Instance Factory Method.
Read more >
Chapter 3. Beans, BeanFactory and the ApplicationContext
(the type of the returned bean from the static factory method may be the ... When a bean property is a Java Class...
Read more >
Implementing a gRPC Service - Quarkus
gRPC service implementations exposed as CDI beans are automatically registered ... If you don't want to implement a service method just throw an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found