@Override public Endpoint createEndpoint(String bindingId, Class<?> implementorClass, Invoker invoker, WebServiceFeature ... features) { ClassLoader origClassLoader = getContextClassLoader(); boolean restoreTCCL = false; try { restoreTCCL = checkAndFixContextClassLoader(origClassLoader); setValidThreadDefaultBus(); return new DelegateEndpointImpl(super.createEndpoint(bindingId, implementorClass, invoker, features)); } finally { if (restoreTCCL) setContextClassLoader(origClassLoader); } }
public Endpoint createEndpoint(String bindingId, Class implementorClass, Invoker invoker, WebServiceFeature... features) { return new EndpointImpl( (bindingId != null) ? BindingID.parse(bindingId) : BindingID.parse(implementorClass), implementorClass, invoker, features); }