Class ComponentProcessor

java.lang.Object
javax.annotation.processing.AbstractProcessor
androidx.room.compiler.processing.javac.JavacBasicAnnotationProcessor
dagger.internal.codegen.ComponentProcessor
All Implemented Interfaces:
androidx.room.compiler.processing.XBasicAnnotationProcessor, 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.
  • Constructor Details

    • ComponentProcessor

      public ComponentProcessor()
  • Method Details

    • 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(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(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 SourceVersion getSupportedSourceVersion()
      Specified by:
      getSupportedSourceVersion in interface Processor
      Overrides:
      getSupportedSourceVersion in class AbstractProcessor
    • getSupportedOptions

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

      public Iterable<androidx.room.compiler.processing.XProcessingStep> processingSteps()
    • preRound

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

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