Package org.glassfish.apf.context
Class AnnotationContext
- java.lang.Object
-
- org.glassfish.apf.context.AnnotationContext
-
- All Implemented Interfaces:
AnnotatedElementHandler
public class AnnotationContext extends Object implements AnnotatedElementHandler
Convenient superclass implementation of Context objects responsible for holding references to the DOL objects- Author:
- Jerome Dochez
-
-
Constructor Summary
Constructors Constructor Description AnnotationContext()Creates a new instance of AnnotationContext
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendElement(ElementType type, AnnotatedElement element)After annotations for an annotated element are processed, the endElement is called with the annotated element value and its typeProcessingContextgetProcessingContext()voidsetProcessingContext(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
-
-
-
Method Detail
-
setProcessingContext
public void setProcessingContext(ProcessingContext processingContext)
-
getProcessingContext
public ProcessingContext 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
-
-