Package org.glassfish.apf.context
Class AnnotationContext
java.lang.Object
org.glassfish.apf.context.AnnotationContext
- All Implemented Interfaces:
AnnotatedElementHandler
Convenient superclass implementation of Context objects responsible
for holding references to the DOL objects
- Author:
- Jerome Dochez
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidendElement(ElementType type, AnnotatedElement element) After annotations for an annotated element are processed, the endElement is called with the annotated element value and its typevoidsetProcessingContext(ProcessingContext processingContext) voidstartElement(ElementType type, AnnotatedElement element) Before annotations for an annotated element are processed, the startElement is called with the annotated element value and its type
-
Constructor Details
-
AnnotationContext
public AnnotationContext()Creates a new instance of AnnotationContext
-
-
Method Details
-
setProcessingContext
-
getProcessingContext
-
startElement
public void startElement(ElementType type, AnnotatedElement element) throws AnnotationProcessorException Description copied from interface:AnnotatedElementHandlerBefore annotations for an annotated element are processed, the startElement is called with the annotated element value and its type- Specified by:
startElementin interfaceAnnotatedElementHandler- Parameters:
type- the annotated element type (class, field, method...)element- the annotated element we are starting to visit.- Throws:
AnnotationProcessorException
-
endElement
public void endElement(ElementType type, AnnotatedElement element) throws AnnotationProcessorException Description copied from interface:AnnotatedElementHandlerAfter annotations for an annotated element are processed, the endElement is called with the annotated element value and its type- Specified by:
endElementin interfaceAnnotatedElementHandler- Parameters:
type- the annotated element type (class, field, method...)element- the annotated element we are done visiting.- Throws:
AnnotationProcessorException
-