Class TestApplicationComponentManager

java.lang.Object
dagger.hilt.android.internal.testing.TestApplicationComponentManager
All Implemented Interfaces:
OnComponentReadyRunner.OnComponentReadyRunnerHolder, dagger.hilt.internal.GeneratedComponentManager<Object>, dagger.hilt.internal.TestSingletonComponentManager

public final class TestApplicationComponentManager extends Object implements dagger.hilt.internal.TestSingletonComponentManager, OnComponentReadyRunner.OnComponentReadyRunnerHolder
Do not use except in Hilt generated code!

A manager for the creation of components that live in the test Application.

  • Constructor Details

    • TestApplicationComponentManager

      public TestApplicationComponentManager(android.app.Application application)
  • Method Details

    • earlySingletonComponent

      public Object earlySingletonComponent()
      Specified by:
      earlySingletonComponent in interface dagger.hilt.internal.TestSingletonComponentManager
    • generatedComponent

      public Object generatedComponent()
      Specified by:
      generatedComponent in interface dagger.hilt.internal.GeneratedComponentManager<Object>
    • getOnComponentReadyRunner

      public OnComponentReadyRunner getOnComponentReadyRunner()
      Specified by:
      getOnComponentReadyRunner in interface OnComponentReadyRunner.OnComponentReadyRunnerHolder
    • getDescription

      public org.junit.runner.Description getDescription()
    • getTestInstance

      public Object getTestInstance()
    • registerModule

      public <T> void registerModule(Class<T> moduleClass, T module)
      For framework use only! This method should be called when a required module is installed.