Package org.glassfish.apf
Interface HandlerProcessingResult
- All Known Implementing Classes:
HandlerProcessingResultImpl
public interface HandlerProcessingResult
This interface defines the result of an annotation processing
returned by an annotation handler. Annotation handlers are supposed
to handle ONE annotation at a time. However, this simplistic
approach does not always work as annotations on a element can have
interdependencies.
This could be resolved trough sophisticated caching in the context
for instance but it is usually easier to notify the processor that
a particular annotation handler has processed more than one annotation
(which shouldn't be reprocessed subsequently...)
- Author:
- Jerome Dochez
-
Method Summary
Modifier and TypeMethodDescriptionMap<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.
-
Method Details
-
processedAnnotations
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.- Returns:
- the map of processed annoation types and result.
-
getOverallResult
ResultType getOverallResult()- 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.
-