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 <[email protected]>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
