Package sting

Annotation Interface Injector.Input

Enclosing class:
Injector

@Retention(RUNTIME) @Documented @Target({}) public static @interface Injector.Input
A specification of a service that is supplied to an injector during construction. The service is added to the the component graph and is made available for other components to consume
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The java type of the service.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    A flag indicating whether the input is optional and may be null or required.
    An opaque string that qualifies the service.
  • Element Details

    • type

      The java type of the service.

      Sting does not support classes defined with type parameters.

      Returns:
      the java type of the service.
    • qualifier

      @Nonnull String qualifier
      An opaque string that qualifies the service. The string is user-supplied and used to distinguish two different services with the same type() but different semantics.
      Returns:
      an opaque qualifier string.
      Default:
      ""
    • optional

      boolean optional
      A flag indicating whether the input is optional and may be null or required.
      Returns:
      a flag indicating whether the input is optional and may be null or required.
      Default:
      false