本文整理汇总了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();
}
示例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();
}
示例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);
}
}
}
示例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;
}
示例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);
}
}
示例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;
}
示例7:
import javax.xml.ws.WebServiceRef; //导入依赖的package包/类
@WebServiceRef(name = "EndpointService5")
static void setService5(EndpointService service)
{
EndpointClientOne.service5 = service;
}
示例8: setService5
import javax.xml.ws.WebServiceRef; //导入依赖的package包/类
@WebServiceRef(name = "EndpointService5")
public void setService5(EndpointService service)
{
this.service5 = service;
}
示例9: setService6
import javax.xml.ws.WebServiceRef; //导入依赖的package包/类
@WebServiceRef
public void setService6(EndpointService service)
{
this.service6 = service;
}
示例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;
}