org.glassfish.apf.impl
Class HandlerProcessingResultImpl
java.lang.Object
org.glassfish.apf.impl.HandlerProcessingResultImpl
- All Implemented Interfaces:
- HandlerProcessingResult
public class HandlerProcessingResultImpl
- extends java.lang.Object
- implements HandlerProcessingResult
- Author:
- dochez
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HandlerProcessingResultImpl
public HandlerProcessingResultImpl(java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,ResultType> results)
- Creates a new instance of HandlerProcessingResultImpl
HandlerProcessingResultImpl
public HandlerProcessingResultImpl()
getDefaultResult
public static HandlerProcessingResultImpl getDefaultResult(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
ResultType result)
processedAnnotations
public java.util.Map<java.lang.Class<? extends java.lang.annotation.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(java.lang.Class<? extends java.lang.annotation.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.