org.glassfish.apf.impl
Class ProcessingResultImpl

java.lang.Object
  extended by org.glassfish.apf.impl.ProcessingResultImpl
All Implemented Interfaces:
ProcessingResult

public class ProcessingResultImpl
extends java.lang.Object
implements ProcessingResult

Implementation of the ProcessingResult interface

Author:
Jerome Dochez

Constructor Summary
ProcessingResultImpl()
          Creates a new instance of ProcessingResultImpl
 
Method Summary
 void add(java.lang.reflect.AnnotatedElement element, HandlerProcessingResult elementResult)
           
 void add(ProcessingResult pr)
           
 ResultType getOverallResult()
           
 java.util.Map<java.lang.reflect.AnnotatedElement,HandlerProcessingResult> getResults()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessingResultImpl

public ProcessingResultImpl()
Creates a new instance of ProcessingResultImpl

Method Detail

add

public void add(ProcessingResult pr)

add

public void add(java.lang.reflect.AnnotatedElement element,
                HandlerProcessingResult elementResult)

getResults

public java.util.Map<java.lang.reflect.AnnotatedElement,HandlerProcessingResult> getResults()
Specified by:
getResults in interface ProcessingResult
Returns:
a Map indexed by all AnnotatedElements processed and each AnnotatedElement HandlerProcessingResult as values.

getOverallResult

public ResultType getOverallResult()
Specified by:
getOverallResult in interface ProcessingResult
Returns:
the overall processing result, which is usually the most severe ResultType for all the annotated elements processing


Copyright © 2012 GlassFish Community. All Rights Reserved.