Class AutoConfigureAnnotationProcessor
- java.lang.Object
- javax.annotation.processing.AbstractProcessor
- org.springframework.boot.autoconfigureprocessor.AutoConfigureAnnotationProcessor
- All Implemented Interfaces:
Processor
@SupportedAnnotationTypes({"org.springframework.context.annotation.Configuration","org.springframework.boot.autoconfigure.condition.ConditionalOnClass","org.springframework.boot.autoconfigure.condition.ConditionalOnBean","org.springframework.boot.autoconfigure.condition.ConditionalOnSingleCandidate","org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication","org.springframework.boot.autoconfigure.AutoConfigureBefore","org.springframework.boot.autoconfigure.AutoConfigureAfter","org.springframework.boot.autoconfigure.AutoConfigureOrder"}) public class AutoConfigureAnnotationProcessor extends AbstractProcessor
Annotation processor to store certain annotations from auto-configuration classes in a property file.
Field Summary
Fields Modifier and Type Field Description protected static String
PROPERTIES_PATH
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
Constructor Summary
Constructors Constructor Description AutoConfigureAnnotationProcessor()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addAnnotations(Map<String,String> annotations)
SourceVersion
getSupportedSourceVersion()
boolean
process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, init, isInitialized
Field Detail
PROPERTIES_PATH
protected static final String PROPERTIES_PATH
- See Also:
- Constant Field Values
Constructor Detail
AutoConfigureAnnotationProcessor
public AutoConfigureAnnotationProcessor()
Method Detail
addAnnotations
protected void addAnnotations(Map<String,String> annotations)
getSupportedSourceVersion
public SourceVersion getSupportedSourceVersion()
- Specified by:
getSupportedSourceVersion
in interfaceProcessor
- Overrides:
getSupportedSourceVersion
in classAbstractProcessor
process
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
- Specified by:
process
in interfaceProcessor
- Specified by:
process
in classAbstractProcessor