Search in sources :

Example 6 with WebServiceRef

use of javax.xml.ws.WebServiceRef in project Payara by payara.

the class WebServiceRefsHandler method processAnnotation.

public HandlerProcessingResult processAnnotation(AnnotationInfo ainfo) throws AnnotationProcessorException {
    WebServiceRefs wsRefsAnnotation = (WebServiceRefs) ainfo.getAnnotation();
    WebServiceRef[] wsRefAnnotations = wsRefsAnnotation.value();
    List<HandlerProcessingResult> results = new ArrayList<HandlerProcessingResult>();
    for (WebServiceRef wsRef : wsRefAnnotations) {
        results.add(processAWsRef(ainfo, wsRef));
    }
    HandlerProcessingResult finalResult = null;
    for (HandlerProcessingResult result : results) {
        if (finalResult == null || (result.getOverallResult().compareTo(finalResult.getOverallResult()) > 0)) {
            finalResult = result;
        }
    }
    return finalResult;
}
Also used : HandlerProcessingResult(org.glassfish.apf.HandlerProcessingResult) ArrayList(java.util.ArrayList) WebServiceRefs(javax.xml.ws.WebServiceRefs) WebServiceRef(javax.xml.ws.WebServiceRef)

Aggregations

WebServiceRef (javax.xml.ws.WebServiceRef)6 Resource (javax.annotation.Resource)3 EJB (javax.ejb.EJB)3 PersistenceContext (javax.persistence.PersistenceContext)3 PersistenceUnit (javax.persistence.PersistenceUnit)3 Field (java.lang.reflect.Field)2 Method (java.lang.reflect.Method)2 ArrayList (java.util.ArrayList)2 WebServiceRefs (javax.xml.ws.WebServiceRefs)2 Annotation (java.lang.annotation.Annotation)1 HandlerProcessingResult (org.glassfish.apf.HandlerProcessingResult)1 ManagedReferenceFactory (org.jboss.as.naming.ManagedReferenceFactory)1 DeploymentUnitProcessingException (org.jboss.as.server.deployment.DeploymentUnitProcessingException)1 WSRefAnnotationWrapper (org.jboss.as.webservices.webserviceref.WSRefAnnotationWrapper)1