org.apache.beehive.wsm.jsr181.processor.apt
Class WsmAnnotationProcessor

Object
  extended by TwoPhaseAnnotationProcessor
      extended by WsmAnnotationProcessor
All Implemented Interfaces:
AnnotationProcessor

public class WsmAnnotationProcessor
extends TwoPhaseAnnotationProcessor

WsmAnnotationProcessor provides an API for IDEs and other applications to perform code validation. todo This class is currently disabled; the object model is solely built through reflection.


Constructor Summary
WsmAnnotationProcessor(Set<AnnotationTypeDeclaration> _atds, AnnotationProcessorEnvironment _env)
          Constructor.
 
Method Summary
 void check(Declaration decl)
          The check method is responsible for all semantic validation of the input Declaration.
protected  AnnotationModel checkObjectModel(TypeDeclaration decl, WebService ws)
          Check object model for implementation beans.
 void generate(Declaration decl)
          The generate method is responsible for the generation of any additional artifacts (source, class, or binary) that are derived from the input Declaration.
static AnnotationModel getObjectModel(String name)
           
static Set<String> getObjectModelNames()
           
protected  WebServiceMETHODMetadata getWebServiceMETHODMetadata(MethodDeclaration decl)
           
protected  WebServicePARAMETERMetadata getWebServicePARAMETERMetadata(ParameterDeclaration decl)
           
 
Methods inherited from class TwoPhaseAnnotationProcessor
check, generate, getAnnotationProcessorEnvironment, process
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsmAnnotationProcessor

public WsmAnnotationProcessor(Set<AnnotationTypeDeclaration> _atds,
                              AnnotationProcessorEnvironment _env)
Constructor.

Method Detail

check

public void check(Declaration decl)
Description copied from class: TwoPhaseAnnotationProcessor
The check method is responsible for all semantic validation of the input Declaration. All semantic warnings/errors associated with the input Declaration should be output during check via a Messager obtained from the AnnotationProcessorEnvironment. If the presence of the input Declaration implies the need to add new files, and those files need to be visible during the check phase for other Declarations, then the AnnotationProcessorEnvironment's Filer API should be used to add those files in this phase. The adding of such files at this point should typically not result in their emission to persistent storage (i.e. disk), but rather be kept in memory to be referenced by the check phase of other Declarations.

Specified by:
check in class TwoPhaseAnnotationProcessor
See Also:
TwoPhaseAnnotationProcessor

generate

public void generate(Declaration decl)
Description copied from class: TwoPhaseAnnotationProcessor
The generate method is responsible for the generation of any additional artifacts (source, class, or binary) that are derived from the input Declaration.

Specified by:
generate in class TwoPhaseAnnotationProcessor
See Also:
TwoPhaseAnnotationProcessor

checkObjectModel

protected AnnotationModel checkObjectModel(TypeDeclaration decl,
                                           WebService ws)
Check object model for implementation beans.

Parameters:
decl -
ws -
Returns:
AnnotationModel

getWebServiceMETHODMetadata

protected WebServiceMETHODMetadata getWebServiceMETHODMetadata(MethodDeclaration decl)

getWebServicePARAMETERMetadata

protected WebServicePARAMETERMetadata getWebServicePARAMETERMetadata(ParameterDeclaration decl)

getObjectModel

public static AnnotationModel getObjectModel(String name)

getObjectModelNames

public static Set<String> getObjectModelNames()