public WebServiceRefElement(Member member, AnnotatedElement ae, @Nullable 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 (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(); }
public WebServiceRefElement(Member member, AnnotatedElement ae, @Nullable 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 (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(); }
public WSRefAnnotationWrapper(final WebServiceRef annotation) { name = annotation.name().isEmpty() ? null : annotation.name(); type = annotation.type() == Object.class ? null : annotation.type().getName(); value = annotation.value().getName(); wsdlLocation = annotation.wsdlLocation().isEmpty() ? null : annotation.wsdlLocation(); }
public WSRefAnnotationWrapper(final WebServiceRef annotation) { name = annotation.name().isEmpty() ? null : annotation.name(); type = annotation.type() == Object.class ? null : annotation.type().getName(); value = annotation.value().getName(); wsdlLocation = annotation.wsdlLocation().isEmpty() ? null : annotation.wsdlLocation(); }
public WebServiceRefElement(Member member, AnnotatedElement ae, @Nullable 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 (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(); }
ref.setMappedName(annotation.mappedName()); ref.setAnnotatedElement(element); if(annotation.wsdlLocation().length() > 0) ref.setWsdlFile(annotation.wsdlLocation()); if(annotation.type() != Object.class)
String wsdlLocation = annotation.wsdlLocation();
/** * 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; }
/** * 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; }
final String wsdlLocation = webService.wsdlLocation(); if (!wsdlLocation.equals("")) { serviceRef.setWsdlFile(wsdlLocation);
String wsdlLocation = webService.wsdlLocation(); if (!wsdlLocation.equals("")) { serviceRef.setWsdlFile(wsdlLocation);
final String wsdlLocation = webService.wsdlLocation(); if (!wsdlLocation.equals("")) { serviceRef.setWsdlFile(wsdlLocation);
if (!ok(aRef.getWsdlFileUri()) && ok(annotation.wsdlLocation())) aRef.setWsdlFileUri(annotation.wsdlLocation());
if (!ok(aRef.getWsdlFileUri()) && ok(annotation.wsdlLocation())) aRef.setWsdlFileUri(annotation.wsdlLocation());