Class PersistentOperationServiceAnnotationProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
org.tentackle.apt.AbstractServiceAnnotationProcessor
org.tentackle.apt.pdo.PersistentOperationServiceAnnotationProcessor
- All Implemented Interfaces:
Processor
@SupportedAnnotationTypes("org.tentackle.pdo.PersistentOperationService")
@AnnotationProcessor
public class PersistentOperationServiceAnnotationProcessor
extends AbstractServiceAnnotationProcessor
Annotation processor for the
Enforces the implementation of the following constructors:
@PersistentOperationService annotation.Enforces the implementation of the following constructors:
- (
Operation,DomainContext) - (
Operation,Session) - (
Operation) - ()
- Author:
- harald
-
Field Summary
Fields inherited from class AbstractServiceAnnotationProcessor
elementUtils, noArgsVisitor, typeUtils, typeVisitorFields inherited from class AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprocessClass(Element element) Processes the annotated class.
The default implementation reports an error if the class is abstract.Methods inherited from class AbstractServiceAnnotationProcessor
acceptTypeVisitor, getSupportedSourceVersion, init, process, verifyConstructor, verifyImplementsMethods inherited from class AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitialized
-
Constructor Details
-
PersistentOperationServiceAnnotationProcessor
public PersistentOperationServiceAnnotationProcessor()Creates the processor.
-
-
Method Details
-
processClass
Description copied from class:AbstractServiceAnnotationProcessorProcesses the annotated class.
The default implementation reports an error if the class is abstract. Subclasses usually override this method to apply further checks.- Overrides:
processClassin classAbstractServiceAnnotationProcessor- Parameters:
element- the class
-