-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable to lookup Events programmatically. #587
Comments
The problem with a |
@mkouba I can agree it is not type safe but getReference is not too so guess it is just adding some consistency and maybe documenting it is for advanced uses? |
This also popped up during a CDI mtg when we discussed some
Just a note that is we implement this, we should probably also allow to invoke
Yes, Weld already allows this, even for |
Yes, openwebbeans also has internals methods to do that but it is not portable whcih is an issue. Also agree the issue is wider but actually can be refined to a single case, let me explain: Think the issue is actually TypeLiteral, it enforces - for the type safety constraint) to compute the wdyt? |
If we ever wanted to unify CDI's It's not exactly pretty, but it might be one of those cases where we just bite the bullet. |
well
|
|
I think that was meant in the opposite direction :-) A constructor accepting |
@mkouba |
@rmannibucau @Ladicek this issue sounds like something we should consider for #622, WDYT? |
Currently there are 2 API to lookup events programmatically from the bean manager - I ignore the derivative like Instance:
I can envision 2 is not an option (even if it should be implementable) since there is 1 but 1 is not enabled because it only support Class or TypeLiteral which are two static types so Type should be added to event#select to enable this use case.
There is no blocker in main implementations AFAIK so can be a quick win for everyone.
The text was updated successfully, but these errors were encountered: