@AutoService(value=javax.annotation.processing.Processor.class) public class BeanRefAnnotationProcessor extends AbstractSingularAnnotationProcessor<BeanRef,VariableElement>
BeanRef and validates them against the following
set of rules.
1. The element must be a field
2. Based on the Bean type, the field type must be as follows.
+--------------------------------------+-----------------------------------+
| Bean Type | Field Type |
|--------------------------------------+-----------------------------------|
| BeanType.CONNECTOR_OPERATION | XConnectorOperationElement |
+--------------------------------------+-----------------------------------+
3. The display name of the BeanRef should be unique within the class.elementUtils, typeUtilsprocessingEnv| Constructor and Description |
|---|
BeanRefAnnotationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
processRules(SingularAnnotationProcessingContext<BeanRef,VariableElement> context)
Processes the rules to validate the
BeanRef annotation |
protected boolean |
validateElementKind(Element element)
Processes the rules to validate the annotation placement
|
getSupportedAnnotationTypes, getSupportedSourceVersion, init, isImplementedByInterface, isImplementedBySuper, isInterfaceImplemented, isOfElementKinds, printError, processgetCompletions, getSupportedOptions, isInitializedprotected boolean validateElementKind(Element element)
validateElementKind in class AbstractSingularAnnotationProcessor<BeanRef,VariableElement>element - the element annotated with the annotationpublic void processRules(SingularAnnotationProcessingContext<BeanRef,VariableElement> context)
BeanRef annotationprocessRules in class AbstractSingularAnnotationProcessor<BeanRef,VariableElement>context - the singular annotation processing context to be usedCopyright © 2016–2019 AdroitLogic. All rights reserved.