Package io.micronaut.openapi.visitor
Class OpenApiExtraSchemaVisitor
java.lang.Object
io.micronaut.openapi.visitor.OpenApiExtraSchemaVisitor
- All Implemented Interfaces:
io.micronaut.core.order.Ordered
,io.micronaut.core.util.Toggleable
,io.micronaut.inject.visitor.TypeElementVisitor<OpenAPIExtraSchemas,
Object>
@Internal
@SupportedOptions("micronaut.openapi.enabled")
public class OpenApiExtraSchemaVisitor
extends Object
implements io.micronaut.inject.visitor.TypeElementVisitor<OpenAPIExtraSchemas,Object>
A
TypeElementVisitor
that builds the extra Open API schema definitions included by @OpenAPIExtraSchema
at the compile time.- Since:
- 6.12.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.inject.visitor.TypeElementVisitor
io.micronaut.inject.visitor.TypeElementVisitor.VisitorKind
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
clean()
void
finish
(io.micronaut.inject.visitor.VisitorContext context) static Collection<String>
int
getOrder()
void
start
(io.micronaut.inject.visitor.VisitorContext context) void
visitClass
(io.micronaut.inject.ast.ClassElement element, io.micronaut.inject.visitor.VisitorContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.util.Toggleable
isEnabled
Methods inherited from interface io.micronaut.inject.visitor.TypeElementVisitor
getClassType, getElementType, getSupportedOptions, getVisitorKind, visitConstructor, visitEnumConstant, visitField, visitMethod
-
Constructor Details
-
OpenApiExtraSchemaVisitor
public OpenApiExtraSchemaVisitor()
-
-
Method Details
-
getSupportedAnnotationNames
- Specified by:
getSupportedAnnotationNames
in interfaceio.micronaut.inject.visitor.TypeElementVisitor<OpenAPIExtraSchemas,
Object>
-
start
public void start(io.micronaut.inject.visitor.VisitorContext context) - Specified by:
start
in interfaceio.micronaut.inject.visitor.TypeElementVisitor<OpenAPIExtraSchemas,
Object>
-
finish
public void finish(io.micronaut.inject.visitor.VisitorContext context) - Specified by:
finish
in interfaceio.micronaut.inject.visitor.TypeElementVisitor<OpenAPIExtraSchemas,
Object>
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceio.micronaut.core.order.Ordered
-
visitClass
public void visitClass(io.micronaut.inject.ast.ClassElement element, io.micronaut.inject.visitor.VisitorContext context) - Specified by:
visitClass
in interfaceio.micronaut.inject.visitor.TypeElementVisitor<OpenAPIExtraSchemas,
Object>
-
getExtraSchemas
-
getExcludedExtraSchemas
-
clean
public static void clean()
-