use of io.fabric8.cxf.endpoint.ManagedApiFeature in project fabric8 by jboss-fuse.
the class RestJsonSchemaJMXTest method setUp.
@Before
public void setUp() {
SpringBusFactory bf = new SpringBusFactory();
Bus bus = bf.createBus("/io/fabric8/cxf/endpoint/jaxrs/jmx-enable.xml");
BusFactory.setDefaultBus(bus);
JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean();
sf.setResourceClasses(BookStore.class, BookStoreSpring.class);
sf.setResourceProvider(BookStore.class, new SingletonResourceProvider(new BookStore(), true));
sf.setResourceProvider(BookStoreSpring.class, new SingletonResourceProvider(new BookStoreSpring(), true));
sf.setTransportId(LocalTransportFactory.TRANSPORT_ID);
sf.setAddress("local://books");
sf.getFeatures().add(new ManagedApiFeature());
localServer = sf.create();
}
use of io.fabric8.cxf.endpoint.ManagedApiFeature in project fabric8 by fabric8io.
the class RestJsonSchemaJMXTest method setUp.
@Before
public void setUp() {
SpringBusFactory bf = new SpringBusFactory();
Bus bus = bf.createBus("/io/fabric8/cxf/endpoint/jaxrs/jmx-enable.xml");
BusFactory.setDefaultBus(bus);
JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean();
sf.setResourceClasses(BookStore.class, BookStoreSpring.class);
sf.setResourceProvider(BookStore.class, new SingletonResourceProvider(new BookStore(), true));
sf.setResourceProvider(BookStoreSpring.class, new SingletonResourceProvider(new BookStoreSpring(), true));
sf.setTransportId(LocalTransportFactory.TRANSPORT_ID);
sf.setAddress("local://books");
sf.getFeatures().add(new ManagedApiFeature());
localServer = sf.create();
}
Aggregations