|
Page Edited :
CXF20DOC :
Server, Service, and Client FactoryBeans
Server, Service, and Client FactoryBeans has been edited by Dan Diephouse (Mar 25, 2007). Content:OverviewCXF has four primary classes which help in the representation of services:
CXF also includes several factories to assist in the creation of clients and servers:
For more information on how to use these beans, please see the Simple Frontend page or the javadocs. ServiceFactoryBeans and AbstractServiceConfigurationThe primary service factory bean inside CXF is the ReflectionServiceFactoryBean. It provides a way to map a class to a service. If you are interested in controlling how this mapping occurs, you can extend provide your own Service configuration. Most configuration of services happens through these. For instance, in the JAX-WS frontend, the JaxWsServiceConfiguration controls how the service is mapped by inspecting the JAX-WS annotations. To add your own service configuration: MyServiceConfiguration config = new AbstractServiceConfiguration() { ... // your implementation }; ReflectionServiceFactoryBean serviceFactory = new ReflectionServiceFactoryBean(); serviceFactory.getServiceConfigurations().add(0, config);
ServerFactoryBean svrFactory = new ServerFactoryBean();
svrFactory.setServiceFactory(serviceFactory);
...
Server svr = svrFactory.create();
|
Unsubscribe or edit your notifications preferences
