本文整理了Java中javax.xml.ws.spi.Provider.provider()
方法的一些代码示例,展示了Provider.provider()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Provider.provider()
方法的具体详情如下:
包路径:javax.xml.ws.spi.Provider
类名称:Provider
方法名:provider
[英]Creates a new provider object.
The algorithm used to locate the provider subclass to use consists of the following steps:
代码示例来源:origin: apache/cxf
private boolean isCXF() {
return Provider.provider().getClass().getName().contains(".cxf");
}
public void unregister(Endpoint endpoint, Object service) throws EndpointRegistrationException {
代码示例来源:origin: org.apache.openejb/javaee-api
/**
* @since 2.2
*/
public static Endpoint create(Object implementor, WebServiceFeature ... features) {
return Provider.provider().createEndpoint(null, implementor, features);
}
/**
代码示例来源:origin: org.apache.openejb/javaee-api
/**
* @since 2.2
*/
public static Endpoint create(String bindingId, Object implementor, WebServiceFeature ... features) {
return Provider.provider().createEndpoint(bindingId, implementor, features);
}
代码示例来源:origin: org.apache.axis2/axis2-jaxws-api
public W3CEndpointReference build() {
return Provider.provider().createW3CEndpointReference(address,
serviceName,
endpointName,
metadataElements,
wsdlDocumentLocation,
referenceParameters);
}
代码示例来源:origin: javax/javaee-endorsed-api
protected Service(java.net.URL wsdlDocumentLocation, QName serviceName, WebServiceFeature ... features) {
delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation,
serviceName,
this.getClass(), features);
}
代码示例来源:origin: org.jboss.spec.javax.xml.ws/jboss-jaxws-api_2.2_spec
protected Service(java.net.URL wsdlDocumentLocation, QName serviceName) {
delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation,
serviceName,
this.getClass());
}
代码示例来源:origin: javax/javaee-endorsed-api
protected Service(java.net.URL wsdlDocumentLocation, QName serviceName) {
delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation,
serviceName,
this.getClass());
}
代码示例来源:origin: org.apache.openejb/javaee-api
/**
* @since 2.2
*/
protected Service(URL wsdlDocumentLocation, QName serviceName, WebServiceFeature... features) {
delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, getClass(), features);
}
代码示例来源:origin: org.jboss.spec.javax.xml.ws/jboss-jaxws-api_2.2_spec
protected Service(java.net.URL wsdlDocumentLocation, QName serviceName, WebServiceFeature ... features) {
delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation,
serviceName,
this.getClass(), features);
}
代码示例来源:origin: javax.xml.ws/com.springsource.javax.xml.ws
protected Service(java.net.URL wsdlDocumentLocation, QName serviceName) {
delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation,
serviceName,
this.getClass());
}
代码示例来源:origin: org.apache.openejb/javaee-api
protected Service(URL wsdlDocumentLocation, QName serviceName) {
delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, getClass());
}
/**
代码示例来源:origin: org.apache.openejb/javaee-api
public static Endpoint publish(String address, Object implementor) {
return Provider.provider().createAndPublishEndpoint(address, implementor);
}
/**
代码示例来源:origin: org.apache.openejb/javaee-api
public static Endpoint create(String bindingId, Object implementor) {
return Provider.provider().createEndpoint(bindingId, implementor);
}
/**
代码示例来源:origin: org.apache.openejb/javaee-api
public static EndpointReference readFrom(Source eprInfoset) {
return Provider.provider().readEndpointReference(eprInfoset);
}
代码示例来源:origin: org.apache.axis2/axis2-jaxws-api
public static Endpoint create(String bindingId, Object implementor) {
return Provider.provider().createEndpoint(bindingId, implementor);
}
代码示例来源:origin: org.apache.axis2/axis2-jaxws-api
public <T> T getPort(Class<T> serviceEndpointInterface, WebServiceFeature... features) {
return Provider.provider().getPort(this, serviceEndpointInterface, features);
}
代码示例来源:origin: org.apache.axis2/axis2-jaxws-api
public static EndpointReference readFrom(Source eprInfoset) {
return Provider.provider().readEndpointReference(eprInfoset);
}
代码示例来源:origin: apache/cxf
private static synchronized void createInstance() {
if (instance != null) {
return;
}
Provider p = Provider.provider();
if (p.getClass().getName().contains("apache.cxf")) {
instance = new CXFWSNHelper();
} else {
instance = new WSNHelper();
}
}
代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings
private Endpoint publish(String address, Object implementor) {
Provider provider = Provider.provider();
if (provider.getClass().getName().startsWith("weblogic.")) {
// workaround for WebLogic
address = address + "/";
}
Endpoint endpoint = Endpoint.publish(address, implementor);
SOAPBinding binding = (SOAPBinding) endpoint.getBinding();
binding.setMTOMEnabled(true);
return endpoint;
}
}
代码示例来源:origin: org.jboss.ws.cxf/jbossws-cxf-server
@Override
public void start(final Deployment dep)
{
if (BusFactory.getDefaultBus(false) == null)
{
//Make sure the default bus is created and set for client side usage
//(i.e. no server side integration contribution in it)
JBossWSBusFactory.getDefaultBus(Provider.provider().getClass().getClassLoader());
}
startDeploymentBus(dep);
}
内容来源于网络,如有侵权,请联系作者删除!