Examples of IJaxwsWebServiceRef


Examples of org.ow2.util.ee.metadata.common.api.struct.IJaxwsWebServiceRef

            // inject field
            injectPersistenceUnit(jJavaxPersistenceUnit, sharedMetadata, clazz, instance);
        }

        // Inject WebServiceRef
        IJaxwsWebServiceRef jaxwsWSR = sharedMetadata.getJaxwsWebServiceRef();
        if (jaxwsWSR != null) {

            // Update type name
            jaxwsWSR.setType(getInterfaceName(sharedMetadata));

            // Inject field
            injectWebServiceRef(jaxwsWSR, sharedMetadata, clazz, instance);
        }
    }
View Full Code Here

Examples of org.ow2.util.ee.metadata.common.api.struct.IJaxwsWebServiceRef

        // Iterates on each reference
        for (ServiceRef reference : references) {
            String name = reference.getName();

            IJaxwsWebServiceRef ref = namedReferences.get(name);

            // Found a matching reference name
            if (ref != null) {

                // Update WSDL location
                ref.setWsdlLocation(reference.getWsdlLocation());

                // Update port component refs
                List<PortComponentRef> easyBeansPortCompentRefs = reference.getPortComponentRefs();
                if (easyBeansPortCompentRefs != null) {
                    for (PortComponentRef easyBeansPortComponentRef : easyBeansPortCompentRefs) {
                        String serviceEndpointInterface = easyBeansPortComponentRef.getServiceEndpointInterface();

                        // matching port component ref ?
                        IPortComponentRef portComponentRef = ref.getPortComponentRef(serviceEndpointInterface);
                        if (portComponentRef == null) {
                            // no matching found, create a new one
                            portComponentRef = new org.ow2.util.ee.metadata.common.impl.xml.struct.PortComponentRef();
                            portComponentRef.setServiceEndpointInterface(serviceEndpointInterface);
                            List<IPortComponentRef> existingList = ref.getPortComponentRefs();
                            // add
                            existingList.add(portComponentRef);
                            // set the new list
                            ref.setPortComponentRefs(existingList);
                        }
                        // Set the properties
                        portComponentRef.setStubProperties(easyBeansPortComponentRef.getProperties());
                    }
                }
View Full Code Here

Examples of org.ow2.util.ee.metadata.common.api.struct.IJaxwsWebServiceRef

        // Init a default map
        Map<String, IJaxwsWebServiceRef> references;
        references = new HashMap<String, IJaxwsWebServiceRef>();

        // Class level annotations (must have a name)
        IJaxwsWebServiceRef ref = classAnnotationMetadata.getJaxwsWebServiceRef();
        if (ref != null) {
            references.put(ref.getName(), ref);
        }

        List<IJaxwsWebServiceRef> refs = classAnnotationMetadata.getJaxwsWebServiceRefs();
        if ((refs != null) && (!refs.isEmpty())) {
            for (IJaxwsWebServiceRef classLevelReference : refs) {
                references.put(classLevelReference.getName(), classLevelReference);
            }
        }

        // Field level annotations (may have a name, if not set, use field name)
        Collection<EasyBeansEjbJarFieldMetadata> fields = classAnnotationMetadata.getStandardFieldMetadataCollection();
        if ((fields != null) && (!fields.isEmpty())) {
            for (EasyBeansEjbJarFieldMetadata field : fields) {
                IJaxwsWebServiceRef fieldReference = field.getJaxwsWebServiceRef();
                if (fieldReference != null) {
                    String refName = fieldReference.getName();
                    // Is there a usable name ?
                    if (refName == null) {
                        // If not, use the field name
                        refName = field.getFieldName();
                    }
                    references.put(refName, fieldReference);
                }
            }
        }

        // Method level annotations (may have a name, if not set, use property method name)
        Collection<EasyBeansEjbJarMethodMetadata> methods = classAnnotationMetadata.getMethodMetadataCollection();
        if ((methods != null) && (!methods.isEmpty())) {
            for (EasyBeansEjbJarMethodMetadata methodMetadata : methods) {
                IJaxwsWebServiceRef methodReference = methodMetadata.getJaxwsWebServiceRef();
                if (methodReference != null) {
                    String refName = methodReference.getName();
                    // Is there a usable name ?
                    if (refName == null) {
                        // If not, use the method's property name
                        String methodName = methodMetadata.getJMethod().getName();
                        methodName = methodName.substring("set".length());
View Full Code Here

Examples of org.ow2.util.ee.metadata.common.api.struct.IJaxwsWebServiceRef

                    }

            }

            // &#64;WebServiceRef annotation
            IJaxwsWebServiceRef jWebServiceRef = fieldMetaData.getJaxwsWebServiceRef();
            if (jWebServiceRef != null) {

                // Validate
                validateAccessFieldAnnotation(fieldMetaData);

                // Perform a java:comp/env lookup
                callAttributeJndi(jWebServiceRef.getName(), typeInterface, mv, fieldMetaData,
                        this.classAnnotationMetadata.getClassName(), JAVA_COMP_ENV);
            }
        }
    }
View Full Code Here

Examples of org.ow2.util.ee.metadata.common.api.struct.IJaxwsWebServiceRef

                javaxPersistenceUnit.setName(getJndiName(javaxPersistenceUnit.getName(), methodMetaData));
                bindClassPersistenceUnit(javaxPersistenceUnit, mv);
            }

            // &#64;WebServiceRef annotation
            IJaxwsWebServiceRef jWebServiceRef = methodMetaData.getJaxwsWebServiceRef();
            if (jWebServiceRef != null) {

                Type typeInterface = validateSetterMethod(methodMetaData);

                // Validate
                validateAccessMethodAnnotation(methodMetaData);

                // Perform a java:comp/env lookup
                callMethodJndiEnv(jWebServiceRef.getName(),
                                  typeInterface,
                                  mv,
                                  methodMetaData,
                                  this.classAnnotationMetadata.getClassName(),
                                  JAVA_COMP_ENV);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.