[arquillian-issues] [JBoss JIRA] (ARQ-1555) Rest Extension clients should be decoupled from RestEasy

John Ament (JIRA) jira-events at lists.jboss.org
Sat Nov 9 17:00:06 EST 2013


    [ https://issues.jboss.org/browse/ARQ-1555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922112#comment-12922112 ] 

John Ament commented on ARQ-1555:
---------------------------------

Actually, think I found a way to leverage @ArquillianResource.  Since it uses a class, the class provided could be the @ApplicationPath annotated class.

If you did

@ArquillianResource(JaxRSActivator.class) MyInterface restClient;

REST extension could look for that application path (as found on that class) and leverage that as the base URI.  If your JAXRSActivator was annotated @ApplicationPath("/rest") it would use rest.

Otherwise it should default to /, since this is the default behavior of JAX-RS.

WDYT?
                
> Rest Extension clients should be decoupled from RestEasy
> --------------------------------------------------------
>
>                 Key: ARQ-1555
>                 URL: https://issues.jboss.org/browse/ARQ-1555
>             Project: Arquillian
>          Issue Type: Enhancement
>      Security Level: Public(Everyone can see) 
>          Components: Extension - REST
>            Reporter: John Ament
>            Priority: Minor
>
> Currently, the annotation marking a REST client is "ArquillianResteasyResource", this implies that the client framework can only ever work with RestEasy.  I would like to propose renaming this annotation ArquillianRestClient, which clearily identifies it as being useful to any Rest Client framework, and make it's clearer that it's a client API (not the resource itself).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the arquillian-issues mailing list