use of org.apache.cxf.frontend.ServerFactoryBean in project cxf by apache.
the class AbstractAegisTest method createServiceFactory.
protected ServerFactoryBean createServiceFactory(Class<?> serviceClass, Object serviceBean, String address, QName name, AegisDatabinding binding) {
ServerFactoryBean sf = new ServerFactoryBean();
sf.setServiceClass(serviceClass);
if (serviceBean != null) {
sf.setServiceBean(serviceBean);
}
sf.getServiceFactory().setServiceName(name);
sf.setAddress("local://" + address);
setupAegis(sf, binding);
return sf;
}
use of org.apache.cxf.frontend.ServerFactoryBean in project cxf by apache.
the class ExceptionInheritanceTest method createServiceFactory.
@Override
protected ServerFactoryBean createServiceFactory(Class<?> serviceClass, Object serviceBean, String address, QName name, AegisDatabinding b) {
ServerFactoryBean sf = super.createServiceFactory(serviceClass, serviceBean, address, name, b);
sf.getServiceFactory().setProperties(props);
return sf;
}
use of org.apache.cxf.frontend.ServerFactoryBean in project cxf by apache.
the class InheritancePOJOTest method setUp.
@Before
public void setUp() throws Exception {
super.setUp();
ServerFactoryBean sf = createServiceFactory(InheritanceService.class, null, "InheritanceService", new QName("urn:xfire:inheritance", "InheritanceService"), null);
AegisContext globalContext = new AegisContext();
globalContext.setWriteXsiTypes(true);
Set<String> l = new HashSet<>();
l.add(Employee.class.getName());
globalContext.setRootClassNames(l);
AegisDatabinding binding = new AegisDatabinding();
binding.setAegisContext(globalContext);
sf.getServiceFactory().setDataBinding(binding);
sf.create();
}
Aggregations