Package dagger

Annotation Interface Subcomponent


@Retention(RUNTIME) @Target(TYPE) @Documented public @interface Subcomponent
A subcomponent that inherits the bindings from a parent Component or Subcomponent. The details of how to associate a subcomponent with a parent are described in the documentation for Component.
Since:
2.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    A builder for a subcomponent.
    static @interface 
    A factory for a subcomponent.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
    A list of classes annotated with Module whose bindings are used to generate the subcomponent implementation.
  • Element Details

    • modules

      Class<?>[] modules
      A list of classes annotated with Module whose bindings are used to generate the subcomponent implementation. Note that through the use of Module.includes() the full set of modules used to implement the subcomponent may include more modules that just those listed here.
      Default:
      {}