Java 类javax.xml.ws.spi.ServiceDelegate 实例源码

项目:winrm4j    文件:WinRmFactory.java   
private static WinRm doCreateServiceWithReflectivelySetDelegate() {
    WinRmService service = doCreateService_1_CreateMinimalServiceInstance();

    try {
        Field delegateField = javax.xml.ws.Service.class.getDeclaredField("delegate"); //ALLOW CXF SPECIFIC SERVICE DELEGATE ONLY!
        delegateField.setAccessible(true);
        ServiceDelegate previousDelegate = (ServiceDelegate) delegateField.get(service);
        if (!previousDelegate.getClass().getName().contains("cxf")) {
            ServiceDelegate serviceDelegate = ((Provider) Class.forName("org.apache.cxf.jaxws.spi.ProviderImpl").newInstance())
                    .createServiceDelegate(WinRmService.WSDL_LOCATION, WinRmService.SERVICE, service.getClass());
            delegateField.set(service, serviceDelegate);
        }
    } catch (Exception e) {
        throw new RuntimeException("Error reflectively setting CXF WS service delegate", e);
    }
    return doCreateService_2_GetClient(service);
}
项目:jbossws-cxf    文件:ProviderImpl.java   
@SuppressWarnings("rawtypes")
@Override
public ServiceDelegate createServiceDelegate(URL url, QName qname, Class cls)
{
   final String busStrategy = ClientBusSelector.getInstance().selectStrategy();
   ClassLoader origClassLoader = getContextClassLoader();
   boolean restoreTCCL = false;
   Bus orig = null;
   try
   {
      restoreTCCL = checkAndFixContextClassLoader(origClassLoader);
      orig = BusFactory.getThreadDefaultBus(false);          
      Bus bus = getOrCreateBus(busStrategy, origClassLoader);
      ServiceDelegate serviceDelegate = new JBossWSServiceImpl(bus, url, qname, cls);
      setDisableCacheSchema(bus);
      return serviceDelegate;
   }
   finally
   {
      restoreThreadDefaultBus(busStrategy, orig);
      if (restoreTCCL)
         setContextClassLoader(origClassLoader);
   }
}
项目:OpenJSharp    文件:ProviderImpl.java   
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass,
                                              WebServiceFeature ... features) {
    for (WebServiceFeature feature : features) {
        if (!(feature instanceof ServiceSharedFeatureMarker))
        throw new WebServiceException("Doesn't support any Service specific features");
    }
    return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass, features);
}
项目:openjdk-jdk10    文件:ProviderImpl.java   
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass,
                                              WebServiceFeature ... features) {
    for (WebServiceFeature feature : features) {
        if (!(feature instanceof ServiceSharedFeatureMarker))
        throw new WebServiceException("Doesn't support any Service specific features");
    }
    return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass, features);
}
项目:openjdk9    文件:ProviderImpl.java   
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass,
                                              WebServiceFeature ... features) {
    for (WebServiceFeature feature : features) {
        if (!(feature instanceof ServiceSharedFeatureMarker))
        throw new WebServiceException("Doesn't support any Service specific features");
    }
    return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass, features);
}
项目:lookaside_java-1.8.0-openjdk    文件:ProviderImpl.java   
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass,
                                              WebServiceFeature ... features) {
    for (WebServiceFeature feature : features) {
        if (!(feature instanceof ServiceSharedFeatureMarker))
        throw new WebServiceException("Doesn't support any Service specific features");
    }
    return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass, features);
}
项目:jbossws-cxf    文件:ProviderImpl.java   
@SuppressWarnings("rawtypes")
@Override
public ServiceDelegate createServiceDelegate(URL wsdlDocumentLocation, QName serviceName, Class serviceClass,
      WebServiceFeature... features)
{
   //check feature types
   for (WebServiceFeature f : features) {
      final String fName = f.getClass().getName();
      if (!fName.startsWith("javax.xml.ws") && !fName.startsWith("org.jboss.ws")) {
          throw Messages.MESSAGES.unknownFeature(f.getClass().getName());
      }
   }

   final String busStrategy = ClientBusSelector.getInstance().selectStrategy(features);
   ClassLoader origClassLoader = getContextClassLoader();
   boolean restoreTCCL = false;
   Bus orig = null;
   try
   {
      restoreTCCL = checkAndFixContextClassLoader(origClassLoader);
      orig = BusFactory.getThreadDefaultBus(false);
      Bus bus = getOrCreateBus(busStrategy, origClassLoader);
      ServiceDelegate serviceDelegate = new JBossWSServiceImpl(bus, wsdlDocumentLocation, serviceName, serviceClass, features);
      setDisableCacheSchema(bus);
      return serviceDelegate;
   }
   finally
   {
      restoreThreadDefaultBus(busStrategy, orig);
      if (restoreTCCL)
         setContextClassLoader(origClassLoader);
   }
}
项目:infobip-open-jdk-8    文件:ProviderImpl.java   
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass,
                                              WebServiceFeature ... features) {
    for (WebServiceFeature feature : features) {
        if (!(feature instanceof ServiceSharedFeatureMarker))
        throw new WebServiceException("Doesn't support any Service specific features");
    }
    return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass, features);
}
项目:OLD-OpenJDK8    文件:ProviderImpl.java   
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass,
                                              WebServiceFeature ... features) {
    for (WebServiceFeature feature : features) {
        if (!(feature instanceof ServiceSharedFeatureMarker))
        throw new WebServiceException("Doesn't support any Service specific features");
    }
    return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass, features);
}
项目:openjdk-icedtea7    文件:ProviderImpl.java   
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass,
                                              WebServiceFeature ... features) {
    if (features.length > 0) {
        throw new WebServiceException("Doesn't support any Service specific features");
    }
    return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
}
项目:tomee    文件:JaxWsProviderWrapper.java   
@SuppressWarnings("unchecked")
@Override
public ServiceDelegate createServiceDelegate(final URL wsdlDocumentLocation, final QName serviceName, final Class serviceClass) {
    ServiceDelegate serviceDelegate = delegate.createServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
    serviceDelegate = new ServiceDelegateWrapper(serviceDelegate);
    return serviceDelegate;
}
项目:tomee    文件:ProviderWrapper.java   
public ServiceDelegate createServiceDelegate(final URL wsdlDocumentLocation, final QName serviceName, final Class serviceClass) {
    ServiceDelegate serviceDelegate = delegate.createServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
    // the PortRef list is bound to this thread when using @WebServiceRef injection
    // When using the JAX-WS API we don't need to wrap the ServiceDelegate
    if (threadPortRefs.get() != null) {
        serviceDelegate = new ServiceDelegateWrapper(serviceDelegate);

    }
    return serviceDelegate;
}
项目:tomee    文件:ProviderWrapper.java   
public ServiceDelegateWrapper(final ServiceDelegate serviceDelegate) {
    this.serviceDelegate = serviceDelegate;
    final ProviderWrapperData providerWrapperData = threadPortRefs.get();
    if (providerWrapperData != null) {
        this.customizer = providerWrapperData.customizer;
        this.configuration = providerWrapperData.properties;
    } else {
        this.customizer = null;
        this.configuration = null;
    }
}
项目:OpenJSharp    文件:ProviderImpl.java   
@Override
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
}
项目:OpenJSharp    文件:ProviderImpl.java   
public ServiceDelegate createServiceDelegate( Source wsdlSource, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlSource, serviceName, serviceClass);
}
项目:openjdk-jdk10    文件:ProviderImpl.java   
@Override
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
}
项目:openjdk-jdk10    文件:ProviderImpl.java   
public ServiceDelegate createServiceDelegate( Source wsdlSource, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlSource, serviceName, serviceClass);
}
项目:openjdk9    文件:ProviderImpl.java   
@Override
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
}
项目:openjdk9    文件:ProviderImpl.java   
public ServiceDelegate createServiceDelegate( Source wsdlSource, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlSource, serviceName, serviceClass);
}
项目:lookaside_java-1.8.0-openjdk    文件:ProviderImpl.java   
@Override
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
}
项目:lookaside_java-1.8.0-openjdk    文件:ProviderImpl.java   
public ServiceDelegate createServiceDelegate( Source wsdlSource, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlSource, serviceName, serviceClass);
}
项目:jbossws-cxf    文件:DummyProvider.java   
@Override
public ServiceDelegate createServiceDelegate(URL wsdlDocumentLocation, QName serviceName, Class<? extends Service> serviceClass)
{
   return null;
}
项目:infobip-open-jdk-8    文件:ProviderImpl.java   
@Override
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
}
项目:infobip-open-jdk-8    文件:ProviderImpl.java   
public ServiceDelegate createServiceDelegate( Source wsdlSource, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlSource, serviceName, serviceClass);
}
项目:OLD-OpenJDK8    文件:ProviderImpl.java   
@Override
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
}
项目:OLD-OpenJDK8    文件:ProviderImpl.java   
public ServiceDelegate createServiceDelegate( Source wsdlSource, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlSource, serviceName, serviceClass);
}
项目:wso2-axis2    文件:Provider.java   
@Override
public ServiceDelegate createServiceDelegate(URL url, QName qname, Class clazz) {
    return createServiceDelegate(url, qname, clazz, (WebServiceFeature[])null);
}
项目:wso2-axis2    文件:Provider.java   
public ServiceDelegate createServiceDelegate(URL url, QName qname, Class clazz, WebServiceFeature... features) {
    return new org.apache.axis2.jaxws.spi.ServiceDelegate(url, qname, clazz, features);
}
项目:openjdk-icedtea7    文件:ProviderImpl.java   
@Override
public ServiceDelegate createServiceDelegate( URL wsdlDocumentLocation, QName serviceName, Class serviceClass) {
     return new WSServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
}
项目:tomee    文件:JaxWsProviderWrapper.java   
public ServiceDelegateWrapper(final ServiceDelegate serviceDelegate) {
    this.serviceDelegate = serviceDelegate;
}
项目:tomee    文件:JaxWsProviderWrapperTest.java   
@Override
public ServiceDelegate createServiceDelegate(final URL url, final QName qName, final Class aClass) {
    return null;
}
项目:tomee    文件:ProviderWrapperTest.java   
public ServiceDelegate createServiceDelegate(final URL url, final QName qName, final Class aClass) {
    return null;
}