Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.3, 2.0.4, 2.0.5, 2.1, 2.0.6, 2.1.1, 2.0.7, 2.0.8, 2.1.2
-
None
-
None
Description
public Server create() {
try {
applyExtraClass();
if (serviceBean != null && getServiceClass() == null)
if (invoker != null)
{ getServiceFactory().setInvoker(invoker); }else if (serviceBean != null)
{ // we should set the invoker here getServiceFactory().setInvoker(createInvoker()); } Endpoint ep = createEndpoint();
server = new ServerImpl(getBus(),
ep,
getDestinationFactory(),
getBindingFactory());
if (ep.getService().getInvoker() == null) {
if (invoker == null)
else
{ ep.getService().setInvoker(invoker); }}
if (start)
{ server.start(); }} catch (EndpointException e)
{ throw new ServiceConstructionException(e); } catch (BusException e) { throw new ServiceConstructionException(e); }catch (IOException e)
{ throw new ServiceConstructionException(e); }if (serviceBean != null)
{ initializeAnnotationInterceptors(server.getEndpoint(), ClassHelper.getRealClass(getServiceBean())); }else if (getServiceClass() != null)
{ initializeAnnotationInterceptors(server.getEndpoint(), getServiceClass()); } applyFeatures();
return server;
}