Class AsyncTypeElementVisitor
java.lang.Object
io.micronaut.validation.visitor.async.AsyncTypeElementVisitor
- All Implemented Interfaces:
Ordered,Toggleable,TypeElementVisitor<Object,Object>
@Internal
public final class AsyncTypeElementVisitor
extends Object
implements TypeElementVisitor<Object,Object>
A
TypeElementVisitor that validates methods annotated with @ËšAsync return void or futures.- Since:
- 1.0
- Author:
- graemerocher
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.inject.visitor.TypeElementVisitor
TypeElementVisitor.VisitorKind -
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvisitMethod(MethodElement element, VisitorContext context) Executed when a method is encountered that matches the <E> generic.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.util.Toggleable
isEnabledMethods inherited from interface io.micronaut.inject.visitor.TypeElementVisitor
finish, getClassType, getElementType, getSupportedOptions, start, visitClass, visitConstructor, visitEnumConstant, visitField
-
Constructor Details
-
AsyncTypeElementVisitor
public AsyncTypeElementVisitor()
-
-
Method Details
-
getSupportedAnnotationNames
- Specified by:
getSupportedAnnotationNamesin interfaceTypeElementVisitor<Object,Object> - Returns:
- The supported default annotation names.
-
getVisitorKind
- Specified by:
getVisitorKindin interfaceTypeElementVisitor<Object,Object> - Returns:
- The visitor kind.
-
visitMethod
Description copied from interface:TypeElementVisitorExecuted when a method is encountered that matches the <E> generic.- Specified by:
visitMethodin interfaceTypeElementVisitor<Object,Object> - Parameters:
element- The elementcontext- The visitor context
-