I was able to figure this out.
JAXRSServerFactoryBean factory
= RuntimeDelegate.getInstance()
.createEndpoint(
jaxRsApiApplication()
,
JAXRSServerFactoryBean.class );
/*
* Root resource classes are POJOs (Plain Old Java Objects)
that are
annotated with
* @Path have at least one method annotated with @Path or a
resource
method designator
* annotation such as @GET, @PUT, @POST, @DELETE. Resource
methods are
methods of a
* resource class annotated with a resource method designator.
*/
factory.setServiceBeans( Arrays. asList( personServiceImpl()
, exceptionImpl() ) );
factory.setAddress( factory.getAddress() );
factory.setProvider( jsonProvider() );
@SuppressWarnings("rawtypes")
List l = new ArrayList();
/*l.add( new LoggingInInterceptor() );
l.add( new LogWriterInterceptor( Phase.RECEIVE) );
factory.setInInterceptors( l );* /
return factory.create();
--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-Spring-interceptors-without-web-xml-tp5761947p5762073.html
Sent from the cxf-user mailing list archive at Nabble.com.