Skip to content

Injecting value into either a custom discovery provider - either provider or service? #608

Answered by cescoffier
kjq asked this question in Q&A
Discussion options

You must be logged in to vote

To be a bean, the providers must be annotated with @ApplicationScoped (see http://smallrye.io/smallrye-stork/2.3.0/service-discovery/custom-service-discovery/#implementing-a-service-discovery-provider).

Then, pass the bean to the ServiceDiscovery implementation constructor.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@kjq
Comment options

@kjq
Comment options

@kjq
Comment options

@cescoffier
Comment options

Answer selected by kjq
@kjq
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants