Replies: 1 comment 1 reply
-
I don't think so. An emitter is a managed object. So it is expected to be injected into a bean. You can try to use the CDI programmatic API but you will need @channel (but as a literal) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@Channel
is annotated by@Qualifier
, which in turn leads to the class, that uses@Channel
to be registered as a bean.Is there a way to inject or instantiate an
Emitter
without registering the using class as a bean? Constructor injection comes to my mind, but then the question how to provide the emitter with the correct stream name.Refs:
Beta Was this translation helpful? Give feedback.
All reactions