org.glassfish.apf.impl
Class HandlerProcessingResultImpl

java.lang.Object
  extended by org.glassfish.apf.impl.HandlerProcessingResultImpl
All Implemented Interfaces:
HandlerProcessingResult

public class HandlerProcessingResultImpl
extends Object
implements HandlerProcessingResult

Author:
dochez

Constructor Summary
HandlerProcessingResultImpl()
           
HandlerProcessingResultImpl(Map<Class<? extends Annotation>,ResultType> results)
          Creates a new instance of HandlerProcessingResultImpl
 
Method Summary
 void addAll(HandlerProcessingResult result)
           
 void addResult(Class<? extends Annotation> annotationType, ResultType result)
           
static HandlerProcessingResultImpl getDefaultResult(Class<? extends Annotation> annotationType, ResultType result)
           
 ResultType getOverallResult()
           
 Map<Class<? extends Annotation>,ResultType> processedAnnotations()
          Returns a map of annotation types processed by this handler as keys and a ResultType as a value to communicate the result of the annotation processing for each processed annotation types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlerProcessingResultImpl

public HandlerProcessingResultImpl(Map<Class<? extends Annotation>,ResultType> results)
Creates a new instance of HandlerProcessingResultImpl


HandlerProcessingResultImpl

public HandlerProcessingResultImpl()
Method Detail

getDefaultResult

public static HandlerProcessingResultImpl getDefaultResult(Class<? extends Annotation> annotationType,
                                                           ResultType result)

processedAnnotations

public Map<Class<? extends Annotation>,ResultType> processedAnnotations()
Description copied from interface: HandlerProcessingResult
Returns a map of annotation types processed by this handler as keys and a ResultType as a value to communicate the result of the annotation processing for each processed annotation types.

Specified by:
processedAnnotations in interface HandlerProcessingResult
Returns:
the map of processed annoation types and result.

addResult

public void addResult(Class<? extends Annotation> annotationType,
                      ResultType result)

addAll

public void addAll(HandlerProcessingResult result)

getOverallResult

public ResultType getOverallResult()
Specified by:
getOverallResult in interface HandlerProcessingResult
Returns:
the overall result for this handler processing. Since handlers can process more than one annotation, this overall result will contain the most severe error the haandler encountered while processing the annotations.


Copyright © 2012 GlassFish Community. All Rights Reserved.