cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: Programmatic rest service creation.
Date Fri, 26 Aug 2011 09:51:28 GMT
Hi

the following feature has been created specifically for addressing the
requirements like yours,

http://cxf.apache.org/docs/jax-rs-advanced-features.html#JAX-RSAdvancedFeatures-RESTfulserviceswithoutannotations

Cheers, Sergey

On Thu, Aug 25, 2011 at 7:35 PM, Osvaldo Pina <osvaldo.pina@gmail.com> wrote:
>    Hi,
>
>    I have a scenario where I have to create rest services for a
> implementation class that already exists. I created a adapter that adapts an
> annotated rest class to the implementation class and it worked fine, but it
> would be better for me if I could provide some configuration (probably a xml
> file) and programmability create the rest services based on this
> configuration. Something like this:
>
>  public Class MyImplementationClass {
>
>        public int ten() {
>           return 10;
>        }
>  }
>
>  <service-definition>
>    <path>/ten</path>
>    <class>MyImplementationClass</class>
>    <method>ten</method>
>  </service-definition>
>
>  Can anyone help me on that?
>
>
>   Ats,
>   Osvaldo Pina.
>



-- 
Sergey Beryozkin

http://sberyozkin.blogspot.com
Talend - http://www.talend.com

Mime
View raw message