Package org.glassfish.apf.impl
Class HandlerProcessingResultImpl
- java.lang.Object
-
- org.glassfish.apf.impl.HandlerProcessingResultImpl
-
- All Implemented Interfaces:
HandlerProcessingResult
public class HandlerProcessingResultImpl extends Object implements HandlerProcessingResult
- Author:
- dochez
-
-
Constructor Summary
Constructors Constructor Description HandlerProcessingResultImpl()
HandlerProcessingResultImpl(Map<Class<? extends Annotation>,ResultType> results)
Creates a new instance of HandlerProcessingResultImpl
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 interfaceHandlerProcessingResult
- 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 interfaceHandlerProcessingResult
- 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.
-
-