Annotation Interface ProducerModule


@Documented @Target(TYPE) @Retention(RUNTIME) @Beta public @interface ProducerModule
Annotates a class that contributes Produces bindings to the production component.
Since:
2.0
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
    Additional @ProducerModule- or Module-annotated classes from which this module is composed.
    Class<?>[]
    Any Subcomponent- or ProductionSubcomponent-annotated classes which should be children of the component in which this module is installed.
  • Element Details

    • includes

      Class<?>[] includes
      Additional @ProducerModule- or Module-annotated classes from which this module is composed. The de-duplicated contributions of the modules in includes, and of their inclusions recursively, are all contributed to the object graph.
      Default:
      {}
    • subcomponents

      Class<?>[] subcomponents
      Any Subcomponent- or ProductionSubcomponent-annotated classes which should be children of the component in which this module is installed. A subcomponent may be listed in more than one module in a component.
      Since:
      2.7
      Default:
      {}