FileDocCategorySizeDatePackage
HandlerProcessingResultImpl.javaAPI DocGlassfish v2 API3915Fri May 04 22:30:22 BST 2007com.sun.enterprise.deployment.annotation.impl

HandlerProcessingResultImpl

public class HandlerProcessingResultImpl extends Object implements com.sun.enterprise.deployment.annotation.HandlerProcessingResult
author
dochez

Fields Summary
Map
results
com.sun.enterprise.deployment.annotation.ResultType
overallResult
Constructors Summary
public HandlerProcessingResultImpl(Map results)
Creates a new instance of HandlerProcessingResultImpl

    
                
          
        this.results = results;
    
public HandlerProcessingResultImpl()

        
        results = new HashMap<Class<? extends Annotation>, ResultType>();
    
Methods Summary
public voidaddAll(com.sun.enterprise.deployment.annotation.HandlerProcessingResult result)

         if (result.getOverallResult().compareTo(overallResult)>0) {
            overallResult = result.getOverallResult();
        }
        results.putAll(result.processedAnnotations());
    
public voidaddResult(java.lang.Class annotationType, com.sun.enterprise.deployment.annotation.ResultType result)

        if (result.compareTo(overallResult)>0) {
            overallResult = result;
        }
        results.put(annotationType, result);
    
public static com.sun.enterprise.deployment.annotation.impl.HandlerProcessingResultImplgetDefaultResult(java.lang.Class annotationType, com.sun.enterprise.deployment.annotation.ResultType result)

        
        HandlerProcessingResultImpl impl = new HandlerProcessingResultImpl();
        impl.results.put(annotationType, result);
        impl.overallResult = result;
        return impl;                
    
public com.sun.enterprise.deployment.annotation.ResultTypegetOverallResult()

        return overallResult;
    
public java.util.MapprocessedAnnotations()

        return results;