Search in sources :

Example 1 with HelloServiceImpl2

use of sample.rs.service.hello2.HelloServiceImpl2 in project cxf by apache.

the class SampleRestApplication method rsServer.

@Bean
public Server rsServer() {
    JAXRSServerFactoryBean endpoint = new JAXRSServerFactoryBean();
    endpoint.setBus(bus);
    endpoint.setServiceBeans(Arrays.<Object>asList(new HelloServiceImpl1(), new HelloServiceImpl2()));
    endpoint.setAddress("/");
    endpoint.setFeatures(Arrays.asList(createOpenApiFeature(), new LoggingFeature()));
    return endpoint.create();
}
Also used : HelloServiceImpl2(sample.rs.service.hello2.HelloServiceImpl2) HelloServiceImpl1(sample.rs.service.hello1.HelloServiceImpl1) LoggingFeature(org.apache.cxf.ext.logging.LoggingFeature) JAXRSServerFactoryBean(org.apache.cxf.jaxrs.JAXRSServerFactoryBean) JAXRSServerFactoryBean(org.apache.cxf.jaxrs.JAXRSServerFactoryBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

LoggingFeature (org.apache.cxf.ext.logging.LoggingFeature)1 JAXRSServerFactoryBean (org.apache.cxf.jaxrs.JAXRSServerFactoryBean)1 Bean (org.springframework.context.annotation.Bean)1 HelloServiceImpl1 (sample.rs.service.hello1.HelloServiceImpl1)1 HelloServiceImpl2 (sample.rs.service.hello2.HelloServiceImpl2)1