cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrei Shakirin <ashaki...@talend.com>
Subject RE: ServerLifeCycleListener query
Date Fri, 10 Jan 2014 15:54:03 GMT
Hi Mandy,

Yep, try org.apache.cxf.jaxrs.provider.ProviderFactory for 2.7.8.

Regards,
Andrei.

> -----Original Message-----
> From: Mandy Warren [mailto:mandys.inbox@gmail.com]
> Sent: Freitag, 10. Januar 2014 15:43
> To: users@cxf.apache.org
> Subject: Re: ServerLifeCycleListener query
> 
> It looks like this class exists on the trunk but not in 2.7.8 cxf version we are
> using, is there an alternative?
> 
> Many thanks
> Mandy
> 
> Sent from a mobile device
> 
> > On 7 Jan 2014, at 11:11, Sergey Beryozkin <sberyozkin@gmail.com> wrote:
> >
> > Hi Mandy
> >
> > Happy New Year to you too !
> > You can try the following:
> >
> > import org.apache.cxf.jaxrs.provider.ServerProviderFactory;
> >
> > Endpoint e = server.getEndpoint();
> > // I don't have an access to my computer right now, there should be a
> > way to get to the endpoint from Server interface
> >
> > ServerProviderFactory factory = (ServerProviderFactory)e.get(
> > ServerProviderFactory.class.getName());
> > factory.registerUserProviders(list);
> > //  factory.registerUserProvider(object);
> >
> > This should do it
> > Cheers, Sergey
> >
> >
> > On Mon, Jan 6, 2014 at 11:54 PM, Mandy Warren
> <mandys.inbox@gmail.com>wrote:
> >
> >>
> >> Hi,
> >>
> >> Happy New Year :-)
> >>
> >> I have written a class which implements ServerLifeCycleListener and
> >> registers a number of interceptors which are applicable to all my services.
> >> I was just wondering if there was any way to also register JAXRS
> >> providers using this mechanism?
> >>
> >> Many thanks
> >>
> >> Mandy
> >>
> >> Sent from a mobile device
> >
> >
> >
> > --
> > Sergey Beryozkin
> >
> > http://sberyozkin.blogspot.com
> > Talend - http://www.talend.com

Mime
View raw message