com.google.inject.assistedinject

Annotation Type Assisted



  • @Target(value={FIELD,PARAMETER,METHOD})
    @Retention(value=RUNTIME)
    public @interface Assisted
    Annotates an injected parameter or field whose value comes from an argument to a factory method.
    Author:
    jmourits@google.com (Jerome Mourits), jessewilson@google.com (Jesse Wilson)
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element and Description
      String value
      The unique name for this parameter.
    • Element Detail

      • value

        public abstract String value
        The unique name for this parameter. This is matched to the @Assisted constructor parameter with the same value. Names are not necessary when the parameter types are distinct.
        Default:
        ""

Copyright © 2006–2018 Google, Inc.. All rights reserved.