forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gRPC dev UI: fix service names for service implementing the gRPC inte…
…rface fixes quarkusio#19218
- Loading branch information
1 parent
adf1cec
commit 57852b2
Showing
4 changed files
with
73 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...rpc/runtime/src/main/java/io/quarkus/grpc/runtime/devmode/DelegatingGrpcBeansStorage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package io.quarkus.grpc.runtime.devmode; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
public abstract class DelegatingGrpcBeansStorage { | ||
|
||
private final Map<String, String> userClassesByGeneratedBean = new HashMap<>(); | ||
|
||
@SuppressWarnings("unused") // used from generated code | ||
public void addDelegatingMapping(String userClassName, String delegatingBeanName) { | ||
userClassesByGeneratedBean.put(delegatingBeanName, userClassName); | ||
} | ||
|
||
public String getUserClassName(String delegatingBeanName) { | ||
return userClassesByGeneratedBean.get(delegatingBeanName); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters