-
Notifications
You must be signed in to change notification settings - Fork 20
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
#26 Switch URI look up to be based on the container's value, not HTTP… #29
base: master
Are you sure you want to change the base?
Conversation
2ef2045
to
90fb0b2
Compare
@bartoszmajsak ping? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better late then never :) Shall we release new version after merging it?
|
||
import java.lang.annotation.Annotation; | ||
|
||
public final class ArquillianResourceLiteral implements ArquillianResource { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it need to be public?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not - but may be could also be added to core?
Collection<ResourceProvider> resourceProviders = loader.get().all(ResourceProvider.class); | ||
for(ResourceProvider resourceProvider: resourceProviders) | ||
{ | ||
if(resourceProvider.canProvide(URI.class)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if we can have more than one provider? This will fail on the first one returning null
but maybe there is another one which can pass? Just speculating
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same issue is in core today. If i have multiple providers for URI, I simply get the first. If you recall, I pinged you a while ago about disabling the built in one, which lead to this little hack
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@johnament would that help? arquillian/arquillian-core#118 -> https://issues.jboss.org/browse/ARQ-2053, it's in latest Core.
In fact it was already available long before, as you can read from the discussion on the PR arquillian/arquillian-core#118 (comment), but well hidden :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@johnament did you have a chance to look at this feature in Core? Would it simplify this PR? I think it's time to merge it :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bartoszmajsak I read through those (I think I read them before). It's not clear to me based on the comments in that thread what I need to change here.
If you're going to do a release soon, could you also address #20, perhaps by adding the new and deprecating the old? |
@mojavelinux I would just rename. It's a simple change and will enforce to change immediately. I think cost for such a change is quite low. |
@bartoszmajsak long time no see on this one. Do we still need it? |
…, not HTTPContext. Fixed shrinkwrap version.
90fb0b2
to
961b9a1
Compare
…Context. Fixed shrinkwrap version.
This change is