-
Notifications
You must be signed in to change notification settings - Fork 329
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
Removing global exclusion #775
Conversation
By spec, beans.xml affects only your own jar. So if we declare this exclusion, users can use util package in their app that won't excluded. But I don't have to link to spec because I'm on cellphone. But I remember to read about this. I'm not sure right now. |
It was changed on CDI 1.1's spec, with beans.xml global activation. |
I think that this pull request is really good because But I'm curious about this behaviour. I didn't see in the spec about global activation, only about "automatically discovery beans". There is no any chapter saying that an exclusion in out But as I said before: I love this pull request, because ⛵ |
Indeed. It makes explicitly that the annotated class isn't managed.
This is true! I've sent an email (i couldn't find the link right now) and
There is kinda 10 issues opened at our online courses saying the |
What the people involved with spec said about the issue? Exclusions are global or not? And yes, I'm using Wildfly with EAR app. I'm too sad because this is not the first thing that works differently between managed and not managed apps. Too bad. |
I didn't get an answer for this question, just the comment: "there's a lot of undocumented things [...]". At the time I've accepted it as an "yes, this is global". But I didn't know that the behavior was different on app servers. If you want, you can open a new thread on spec mailing list about it
definitively |
this is a pain in the head! For some reason users like to use util package:
br.com.caelum.vraptor.util
for tests, and since CDI 1.1 global activationour exclusions affects users app, we're always getting this question. Users
shouldn't use vraptor packages, but this is just an simple way to avoid it.