Class ComponentProcessor

  • All Implemented Interfaces:
    androidx.room.compiler.processing.XBasicAnnotationProcessor, javax.annotation.processing.Processor

    @IncrementalAnnotationProcessor(ISOLATING)
    @AutoService(javax.annotation.processing.Processor.class)
    public final class ComponentProcessor
    extends androidx.room.compiler.processing.javac.JavacBasicAnnotationProcessor
    The Javac annotation processor responsible for generating the classes that drive the Dagger implementation.
    • Field Summary

      • Fields inherited from class javax.annotation.processing.AbstractProcessor

        processingEnv
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ComponentProcessor forTesting​(dagger.spi.BindingGraphPlugin... testingPlugins)
      Creates a component processor that uses given BindingGraphPlugins instead of loading them from a ServiceLoader.
      static ComponentProcessor forTesting​(java.lang.Iterable<dagger.spi.BindingGraphPlugin> testingPlugins)
      Creates a component processor that uses given BindingGraphPlugins instead of loading them from a ServiceLoader.
      com.google.common.collect.ImmutableSet<java.lang.String> getSupportedOptions()  
      javax.lang.model.SourceVersion getSupportedSourceVersion()  
      void initialize​(androidx.room.compiler.processing.XProcessingEnv env)  
      void postRound​(androidx.room.compiler.processing.XProcessingEnv env, androidx.room.compiler.processing.XRoundEnv roundEnv)  
      java.lang.Iterable<androidx.room.compiler.processing.XProcessingStep> processingSteps()  
      static ComponentProcessor withTestPlugins​(dagger.spi.model.BindingGraphPlugin... testingPlugins)
      Creates a component processor that uses given BindingGraphPlugins instead of loading them from a ServiceLoader.
      static ComponentProcessor withTestPlugins​(java.lang.Iterable<dagger.spi.model.BindingGraphPlugin> testingPlugins)
      Creates a component processor that uses given BindingGraphPlugins instead of loading them from a ServiceLoader.
      • Methods inherited from class androidx.room.compiler.processing.javac.JavacBasicAnnotationProcessor

        getSupportedAnnotationTypes, getXProcessingEnv, init, process
      • Methods inherited from class javax.annotation.processing.AbstractProcessor

        getCompletions, isInitialized
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ComponentProcessor

        public ComponentProcessor()
    • Method Detail

      • withTestPlugins

        public static ComponentProcessor withTestPlugins​(dagger.spi.model.BindingGraphPlugin... testingPlugins)
        Creates a component processor that uses given BindingGraphPlugins instead of loading them from a ServiceLoader.
      • withTestPlugins

        public static ComponentProcessor withTestPlugins​(java.lang.Iterable<dagger.spi.model.BindingGraphPlugin> testingPlugins)
        Creates a component processor that uses given BindingGraphPlugins instead of loading them from a ServiceLoader.
      • forTesting

        public static ComponentProcessor forTesting​(dagger.spi.BindingGraphPlugin... testingPlugins)
        Creates a component processor that uses given BindingGraphPlugins instead of loading them from a ServiceLoader.
      • forTesting

        public static ComponentProcessor forTesting​(java.lang.Iterable<dagger.spi.BindingGraphPlugin> testingPlugins)
        Creates a component processor that uses given BindingGraphPlugins instead of loading them from a ServiceLoader.
      • initialize

        public void initialize​(androidx.room.compiler.processing.XProcessingEnv env)
      • getSupportedSourceVersion

        public javax.lang.model.SourceVersion getSupportedSourceVersion()
        Specified by:
        getSupportedSourceVersion in interface javax.annotation.processing.Processor
        Overrides:
        getSupportedSourceVersion in class javax.annotation.processing.AbstractProcessor
      • getSupportedOptions

        public com.google.common.collect.ImmutableSet<java.lang.String> getSupportedOptions()
        Specified by:
        getSupportedOptions in interface javax.annotation.processing.Processor
        Overrides:
        getSupportedOptions in class javax.annotation.processing.AbstractProcessor
      • processingSteps

        public java.lang.Iterable<androidx.room.compiler.processing.XProcessingStep> processingSteps()
      • postRound

        public void postRound​(androidx.room.compiler.processing.XProcessingEnv env,
                              androidx.room.compiler.processing.XRoundEnv roundEnv)