当前位置: 首页>>代码示例>>Java>>正文


Java ServiceDelegate类代码示例

本文整理汇总了Java中javax.xml.ws.spi.ServiceDelegate的典型用法代码示例。如果您正苦于以下问题:Java ServiceDelegate类的具体用法?Java ServiceDelegate怎么用?Java ServiceDelegate使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ServiceDelegate类属于javax.xml.ws.spi包,在下文中一共展示了ServiceDelegate类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: doCreateServiceWithReflectivelySetDelegate

import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
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);
}
 
开发者ID:cloudsoft,项目名称:winrm4j,代码行数:18,代码来源:WinRmFactory.java

示例2: createServiceDelegate

import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
@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);
   }
}
 
开发者ID:jbossws,项目名称:jbossws-cxf,代码行数:25,代码来源:ProviderImpl.java

示例3: createServiceDelegate

import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:ProviderImpl.java

示例4: createServiceDelegate

import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
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);
}
 
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:8,代码来源:ProviderImpl.java

示例5: createServiceDelegate

import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
@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;
}
 
开发者ID:apache,项目名称:tomee,代码行数:8,代码来源:JaxWsProviderWrapper.java

示例6: createServiceDelegate

import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
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;
}
 
开发者ID:apache,项目名称:tomee,代码行数:11,代码来源:ProviderWrapper.java

示例7: ServiceDelegateWrapper

import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
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;
    }
}
 
开发者ID:apache,项目名称:tomee,代码行数:12,代码来源:ProviderWrapper.java

示例8: createServiceDelegate

import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
@Override
public ServiceDelegate createServiceDelegate(URL wsdlDocumentLocation, QName serviceName, Class<? extends Service> serviceClass)
{
   return null;
}
 
开发者ID:jbossws,项目名称:jbossws-cxf,代码行数:6,代码来源:DummyProvider.java

示例9: createServiceDelegate

import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
@Override
public ServiceDelegate createServiceDelegate(URL url, QName qname, Class clazz) {
    return createServiceDelegate(url, qname, clazz, (WebServiceFeature[])null);
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:5,代码来源:Provider.java

示例10: ServiceDelegateWrapper

import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
public ServiceDelegateWrapper(final ServiceDelegate serviceDelegate) {
    this.serviceDelegate = serviceDelegate;
}
 
开发者ID:apache,项目名称:tomee,代码行数:4,代码来源:JaxWsProviderWrapper.java

示例11: createServiceDelegate

import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
@Override
public ServiceDelegate createServiceDelegate(final URL url, final QName qName, final Class aClass) {
    return null;
}
 
开发者ID:apache,项目名称:tomee,代码行数:5,代码来源:JaxWsProviderWrapperTest.java

示例12: createServiceDelegate

import javax.xml.ws.spi.ServiceDelegate; //导入依赖的package包/类
public ServiceDelegate createServiceDelegate(final URL url, final QName qName, final Class aClass) {
    return null;
}
 
开发者ID:apache,项目名称:tomee,代码行数:4,代码来源:ProviderWrapperTest.java


注:本文中的javax.xml.ws.spi.ServiceDelegate类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。