-
I have an interface interface RpcClient {
<T, R> Uni<R> request(RequestAddress requestAddress, T requestData, MessageMetaData metaData, TypeReference<R> typeOfReply);
} and an implementation of that with a json based encoding. This is injected all over the app. When I add a second implementation with @Dependent
@Named("Bson")
@Priority(2)
class BsonRpcClientImpl implements RpcClient { ... } and add |
Beta Was this translation helpful? Give feedback.
Answered by
bulldog98
Jun 26, 2023
Replies: 1 comment
-
The answer is annotate the original Bean with |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bulldog98
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The answer is annotate the original Bean with
@Alternative
then it will be picked up as the default