[
https://issues.apache.org/jira/browse/ARIES-2088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jean-Baptiste Onofré reassigned ARIES-2088:
-------------------------------------------
Assignee: Jean-Baptiste Onofré
> A @NameBinding annotation does not work on class or Application
> ---------------------------------------------------------------
>
> Key: ARIES-2088
> URL: https://issues.apache.org/jira/browse/ARIES-2088
> Project: Aries
> Issue Type: Improvement
> Components: jax-rs-whiteboard
> Affects Versions: jax-rs-whiteboard-1.1.0
> Reporter: Amichai Rothman
> Assignee: Jean-Baptiste Onofré
> Priority: Major
>
> In an application using jaxrs via cxf (blueprint), a name-binding annotation
> works both on the resource class/interface itself (which applies it to all
> methods in the class) and on individual methods (which overrides the class
> annotation with the method-specific annotation, e.g. using different
> annotation parameters for the method).
> However when migrating the application to Aries JAX-RS Whiteboard this does
> not work. Only annotations on the methods work, but the class/interface
> annotation is ignored. As a workaround, I tried adding it to the entire
> application by adding the annotation to the Application subclass itself,
> which as I understand from the JAX-RS spec should apply it globally, however
> this does not work either.
> The jaxrs whiteboard should be fixed to respect name-binding annotations not
> only on resource methods, but also on the Application subclass (to make it
> global), the resource class (to apply it to all methods in the class, unless
> the method itself has an overriding annotation), and resource class interface
> (if that's where the JAX-RS annotations are defined).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)