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 <sberyoz...@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.in...@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

Reply via email to