Package io.micronaut.context.visitor
Class ContextConfigurerVisitor
java.lang.Object
io.micronaut.context.visitor.ContextConfigurerVisitor
- All Implemented Interfaces:
- Ordered,- Toggleable,- TypeElementVisitor<ContextConfigurer,- Object> 
@Internal
public class ContextConfigurerVisitor
extends Object
implements TypeElementVisitor<ContextConfigurer,Object> 
This visitor is responsible for generating service files for classes
 annotated with 
ContextConfigurer.- Since:
- 3.2
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.micronaut.inject.visitor.TypeElementVisitorTypeElementVisitor.VisitorKind
- 
Field SummaryFields inherited from interface io.micronaut.core.order.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidChecks that a class annotated withContextConfigurerdoesn't have any constructor with parameters, which is unsupported.voidvisitClass(ClassElement element, VisitorContext context) Executed when a class is encountered that matches the <C> generic.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.util.ToggleableisEnabledMethods inherited from interface io.micronaut.inject.visitor.TypeElementVisitorfinish, getClassType, getSupportedAnnotationNames, getSupportedOptions, query, start, visitConstructor, visitEnumConstant, visitField, visitMethod
- 
Constructor Details- 
ContextConfigurerVisitorpublic ContextConfigurerVisitor()
 
- 
- 
Method Details- 
getVisitorKind- Specified by:
- getVisitorKindin interface- TypeElementVisitor<ContextConfigurer,- Object> 
- Returns:
- The visitor kind.
 
- 
getElementType- Specified by:
- getElementTypein interface- TypeElementVisitor<ContextConfigurer,- Object> 
 
- 
visitClassDescription copied from interface:TypeElementVisitorExecuted when a class is encountered that matches the <C> generic.- Specified by:
- visitClassin interface- TypeElementVisitor<ContextConfigurer,- Object> 
- Parameters:
- element- The element
- context- The visitor context
 
- 
assertNoConstructorForContextAnnotationChecks that a class annotated withContextConfigurerdoesn't have any constructor with parameters, which is unsupported.- Parameters:
- element- the class to check
 
 
-