FileDocCategorySizeDatePackage
WebServiceRefsHandler.javaAPI DocGlassfish v2 API3920Fri May 04 22:31:34 BST 2007com.sun.enterprise.deployment.annotation.handlers

WebServiceRefsHandler

public class WebServiceRefsHandler extends WebServiceRefHandler
This handler is responsible for handling the WebServiceRefs annotation

Fields Summary
Constructors Summary
public WebServiceRefsHandler()

    
Methods Summary
public java.lang.ClassgetAnnotationType()

return
the annoation type this annotation handler is handling

        return WebServiceRefs.class;
    
public com.sun.enterprise.deployment.annotation.HandlerProcessingResultprocessAnnotation(com.sun.enterprise.deployment.annotation.AnnotationInfo ainfo)


        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;