Package org.glassfish.apf.impl
Class HandlerProcessingResultImpl
java.lang.Object
org.glassfish.apf.impl.HandlerProcessingResultImpl
- All Implemented Interfaces:
HandlerProcessingResult
- Author:
- dochez
-
Constructor Summary
ConstructorsConstructorDescriptionHandlerProcessingResultImpl(Map<Class<? extends Annotation>, ResultType> results) Creates a new instance of HandlerProcessingResultImpl -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAll(HandlerProcessingResult result) voidaddResult(Class<? extends Annotation> annotationType, ResultType result) static HandlerProcessingResultImplgetDefaultResult(Class<? extends Annotation> annotationType, ResultType result) Map<Class<? extends Annotation>,ResultType> 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 Details
-
HandlerProcessingResultImpl
Creates a new instance of HandlerProcessingResultImpl -
HandlerProcessingResultImpl
public HandlerProcessingResultImpl()
-
-
Method Details
-
getDefaultResult
public static HandlerProcessingResultImpl getDefaultResult(Class<? extends Annotation> annotationType, ResultType result) -
processedAnnotations
Description copied from interface:HandlerProcessingResultReturns 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:
processedAnnotationsin interfaceHandlerProcessingResult- Returns:
- the map of processed annoation types and result.
-
addResult
-
addAll
-
getOverallResult
- Specified by:
getOverallResultin 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.
-