org.glassfish.apf.context
Class AnnotationContext

java.lang.Object
  extended by 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
AnnotationContext()
          Creates a new instance of AnnotationContext
 
Method Summary
 void endElement(ElementType type, AnnotatedElement element)
          After annotations for an annotated element are processed, the endElement is called with the annotated element value and its type
 ProcessingContext getProcessingContext()
           
 void setProcessingContext(ProcessingContext processingContext)
           
 void startElement(ElementType type, AnnotatedElement element)
          Before annotations for an annotated element are processed, the startElement is called with the annotated element value and its type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationContext

public AnnotationContext()
Creates a new instance of AnnotationContext

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: AnnotatedElementHandler
Before annotations for an annotated element are processed, the startElement is called with the annotated element value and its type

Specified by:
startElement in interface AnnotatedElementHandler
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: AnnotatedElementHandler
After annotations for an annotated element are processed, the endElement is called with the annotated element value and its type

Specified by:
endElement in interface AnnotatedElementHandler
Parameters:
type - the annotated element type (class, field, method...)
element - the annotated element we are done visiting.
Throws:
AnnotationProcessorException


Copyright © 2012 GlassFish Community. All Rights Reserved.