Package org.apache.tika.annotation
Class TikaComponentProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
org.apache.tika.annotation.TikaComponentProcessor
- All Implemented Interfaces:
Processor
@SupportedAnnotationTypes("org.apache.tika.config.TikaComponent")
@SupportedSourceVersion(RELEASE_17)
public class TikaComponentProcessor
extends AbstractProcessor
Annotation processor for
TikaComponent that generates:
- Standard Java SPI files (META-INF/services/*) for ServiceLoader
- Component index files (META-INF/tika/*.idx) for name-based lookup
The processor maintains an inclusion list of known Tika service interfaces to avoid generating SPI files for utility interfaces like Serializable, etc.
-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(ProcessingEnvironment processingEnv) booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, isInitialized
-
Constructor Details
-
TikaComponentProcessor
public TikaComponentProcessor()
-
-
Method Details
-
init
- Specified by:
initin interfaceProcessor- Overrides:
initin classAbstractProcessor
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-