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


Java WebServiceRef类代码示例

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


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

示例1: WebServiceRefElement

import javax.xml.ws.WebServiceRef; //导入依赖的package包/类
public WebServiceRefElement(Member member, PropertyDescriptor pd) {
	super(member, pd);
	AnnotatedElement ae = (AnnotatedElement) member;
	WebServiceRef resource = ae.getAnnotation(WebServiceRef.class);
	String resourceName = resource.name();
	Class<?> resourceType = resource.type();
	this.isDefaultName = !StringUtils.hasLength(resourceName);
	if (this.isDefaultName) {
		resourceName = this.member.getName();
		if (this.member instanceof Method && resourceName.startsWith("set") && resourceName.length() > 3) {
			resourceName = Introspector.decapitalize(resourceName.substring(3));
		}
	}
	if (resourceType != null && !Object.class.equals(resourceType)) {
		checkResourceType(resourceType);
	}
	else {
		// No resource type specified... check field/method.
		resourceType = getResourceType();
	}
	this.name = resourceName;
	this.elementType = resourceType;
	if (Service.class.isAssignableFrom(resourceType)) {
		this.lookupType = resourceType;
	}
	else {
		this.lookupType = (!Object.class.equals(resource.value()) ? resource.value() : Service.class);
	}
	this.mappedName = resource.mappedName();
	this.wsdlLocation = resource.wsdlLocation();
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:32,代码来源:CommonAnnotationBeanPostProcessor.java

示例2: WebServiceRefElement

import javax.xml.ws.WebServiceRef; //导入依赖的package包/类
public WebServiceRefElement(Member member, AnnotatedElement ae, PropertyDescriptor pd) {
	super(member, pd);
	WebServiceRef resource = ae.getAnnotation(WebServiceRef.class);
	String resourceName = resource.name();
	Class<?> resourceType = resource.type();
	this.isDefaultName = !StringUtils.hasLength(resourceName);
	if (this.isDefaultName) {
		resourceName = this.member.getName();
		if (this.member instanceof Method && resourceName.startsWith("set") && resourceName.length() > 3) {
			resourceName = Introspector.decapitalize(resourceName.substring(3));
		}
	}
	if (resourceType != null && Object.class != resourceType) {
		checkResourceType(resourceType);
	}
	else {
		// No resource type specified... check field/method.
		resourceType = getResourceType();
	}
	this.name = resourceName;
	this.elementType = resourceType;
	if (Service.class.isAssignableFrom(resourceType)) {
		this.lookupType = resourceType;
	}
	else {
		this.lookupType = resource.value();
	}
	this.mappedName = resource.mappedName();
	this.wsdlLocation = resource.wsdlLocation();
}
 
开发者ID:langtianya,项目名称:spring4-understanding,代码行数:31,代码来源:CommonAnnotationBeanPostProcessor.java

示例3: attachWebServiceRefsAnnotation

import javax.xml.ws.WebServiceRef; //导入依赖的package包/类
/**
 * This method will be used to attach @WebServiceRefs annotation data to the
 * <code>DescriptionBuilderComposite</code>
 *
 * @param composite - <code>DescriptionBuilderComposite</code>
 */
private void attachWebServiceRefsAnnotation(DescriptionBuilderComposite composite) {
    WebServiceRefs webServiceRefs = (WebServiceRefs)ConverterUtils.getAnnotation(
            WebServiceRefs.class, serviceClass);
    if (webServiceRefs != null) {
        WebServiceRef[] refs = webServiceRefs.value();
        for (WebServiceRef ref : refs) {
            WebServiceRefAnnot wsrAnnot = ConverterUtils.createWebServiceRefAnnot(
                    ref);
            composite.setWebServiceRefAnnot(wsrAnnot);
        }
    }
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:19,代码来源:JavaClassToDBCConverter.java

示例4: createWebServiceRefAnnot

import javax.xml.ws.WebServiceRef; //导入依赖的package包/类
/**
 * This is a helper method to create a <code>WebServiceRefAnnot</code> since the
 *
 * @param webServiceRef - <code>WebServiceRef</code>
 * @return - <code>WebServiceRefAnnot</code>
 * @WebServiceRef annotation may be present on a Type, Method, or Field.
 */
public static WebServiceRefAnnot createWebServiceRefAnnot(WebServiceRef webServiceRef) {
    WebServiceRefAnnot wsrAnnot = WebServiceRefAnnot.createWebServiceRefAnnotImpl();
    wsrAnnot.setMappedName(webServiceRef.mappedName());
    wsrAnnot.setName(webServiceRef.name());
    wsrAnnot.setType(webServiceRef.type());
    wsrAnnot.setValue(webServiceRef.value());
    wsrAnnot.setWsdlLocation(webServiceRef.wsdlLocation());
    return wsrAnnot;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:17,代码来源:ConverterUtils.java

示例5: attachWebServiceRefAnnotation

import javax.xml.ws.WebServiceRef; //导入依赖的package包/类
/**
 * This method is use to attach @WebServiceRef annotation data to a composite object.
 *
 * @param composite        - <code>TMFAnnotationComposite</code>
 * @param annotatedElement - <code>AnnotatedElement</code>
 */
public static void attachWebServiceRefAnnotation(TMFAnnotationComposite composite,
                                                 AnnotatedElement annotatedElement) {
    WebServiceRef webServiceRef = (WebServiceRef)ConverterUtils.getAnnotation(
            WebServiceRef.class, annotatedElement);
    if (webServiceRef != null) {
        WebServiceRefAnnot wsrAnnot = ConverterUtils.createWebServiceRefAnnot(
                webServiceRef);
        composite.setWebServiceRefAnnot(wsrAnnot);
    }
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:17,代码来源:ConverterUtils.java

示例6: setMyService

import javax.xml.ws.WebServiceRef; //导入依赖的package包/类
@WebServiceRef(value=OrderServiceService.class, wsdlLocation = "http://localhost:9999/OrderService?wsdl")
public void setMyService(OrderService myService) {
	this.myService = myService;
}
 
开发者ID:langtianya,项目名称:spring4-understanding,代码行数:5,代码来源:JaxWsSupportTests.java

示例7:

import javax.xml.ws.WebServiceRef; //导入依赖的package包/类
@WebServiceRef(name = "EndpointService5")
static void setService5(EndpointService service)
{
   EndpointClientOne.service5 = service;
}
 
开发者ID:jbossws,项目名称:jbossws-cxf,代码行数:6,代码来源:EndpointClientOne.java

示例8: setService5

import javax.xml.ws.WebServiceRef; //导入依赖的package包/类
@WebServiceRef(name = "EndpointService5")
public void setService5(EndpointService service)
{
   this.service5 = service;
}
 
开发者ID:jbossws,项目名称:jbossws-cxf,代码行数:6,代码来源:ServletClient.java

示例9: setService6

import javax.xml.ws.WebServiceRef; //导入依赖的package包/类
@WebServiceRef
public void setService6(EndpointService service)
{
   this.service6 = service;
}
 
开发者ID:jbossws,项目名称:jbossws-cxf,代码行数:6,代码来源:ServletClient.java

示例10: setEndpoint2

import javax.xml.ws.WebServiceRef; //导入依赖的package包/类
@WebServiceRef(value = EndpointService.class, mappedName="jbossws-client/service/TestService", wsdlLocation="META-INF/wsdl/TestService.wsdl")
public void setEndpoint2(EndpointInterface endpoint2)
{
   this._endpoint2 = endpoint2;
}
 
开发者ID:jbossws,项目名称:jbossws-cxf,代码行数:6,代码来源:StatelessBean.java


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