[
https://issues.apache.org/jira/browse/CXF-4649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13528051#comment-13528051
]
Sergey Beryozkin commented on CXF-4649:
---------------------------------------
Hi, as discussed on IRC, here is the proposed approach.
1. Introduce a generic root resource class
{code:java}
public class GenericDaoRoot {
public Response create();
public Response read();
public Response update();
public Response delete();
}
{code}
and get it initialized with the newly created entity or entity wrapper.
2. Use JAXRSServerFactoryBean to set GenericDaoRoot as the root resource class,
and also supply a user model specific to the type of entity which this root
class represents,
Hope something like this will work ok for you :-)
If you have ideas on how to improve the process - please let me know or lets
discuss it on irc,
cheers
> 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