Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johnament
Copy link
Member

@johnament johnament commented Sep 7, 2016

…Context. Fixed shrinkwrap version.


This change is Reviewable

@johnament johnament force-pushed the uri-injection-refactor branch 3 times, most recently from 2ef2045 to 90fb0b2 Compare September 7, 2016 23:38
@johnament
Copy link
Member Author

@bartoszmajsak ping?

Copy link
Member

@bartoszmajsak bartoszmajsak left a 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 {
Copy link
Member

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?

Copy link
Member Author

@johnament johnament Nov 2, 2016

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))
Copy link
Member

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

Copy link
Member Author

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

https://github.com/hammock-project/hammock/blob/master/test-arquillian/src/main/java/ws/ament/hammock/test/support/HammockArquillianExtension.java#L31

Copy link
Member

@bartoszmajsak bartoszmajsak Jan 9, 2017

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 :)

Copy link
Member

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

Copy link
Member Author

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.

@mojavelinux
Copy link
Member

If you're going to do a release soon, could you also address #20, perhaps by adding the new and deprecating the old?

@bartoszmajsak
Copy link
Member

bartoszmajsak commented Jan 9, 2017

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.

@johnament
Copy link
Member Author

@bartoszmajsak long time no see on this one. Do we still need it?

…, not HTTPContext. Fixed shrinkwrap version.
@johnament johnament force-pushed the uri-injection-refactor branch from 90fb0b2 to 961b9a1 Compare January 6, 2018 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants