[ 
https://issues.apache.org/jira/browse/CXF-4649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13528898#comment-13528898
 ] 

Sergey Beryozkin commented on CXF-4649:
---------------------------------------

Hi, so it is about supporting the meta-annotations, and checking

http://blog.dblevins.com/2012/11/meta-annotations.html

which also refers to the idea of introducing @ValidId.


JAX-RS 2.0 will support the additional annotations based on BeanValidation 
@Constraint, for example
{code}
get(@ValidId @PathParam("id") int id)
{code}

where ValidId will restrict the 'id' somehow, but note that PathParam will also 
be there, so ValidId will effectively act as PathParam qualifier.

Completely replacing @PathParam with @Id or @ValidId, can it be covered by 
JAX-RS CDI integration module ? How it will work anyway, @Id 'replacing' 
@PathParam, can you please educate me a bit and show how @Id might look like, 
guess @Named will be involved somehow, but I've got no idea at the moment :-)? 
                
> offer a way to provider the annotations to cxf/change annotation parsing
> ------------------------------------------------------------------------
>
>                 Key: CXF-4649
>                 URL: https://issues.apache.org/jira/browse/CXF-4649
>             Project: CXF
>          Issue Type: New Feature
>            Reporter: Romain Manni-Bucau
>
> Would be very nice to be able to answer to questions: does the class has the 
> annotation? and if yes to change the way attributes are read
> What i'm thinking about is for instance use cdi Annotated to create on the 
> fly web services (rest or soap)
> What is needed is to move all the annotation parsing to something which can 
> change (a SPI sounds fine but a global setter on the Util class can work too).
> Wdyt?

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

Reply via email to