Annotation Type Argument


  • @Retention(RUNTIME)
    @Target({FIELD,PARAMETER})
    public @interface Argument
    Indicates a field or method argument is a required argument to be provided at runtime via a factory used for assisted injection.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String value
      Name for factory arguments, which must match the name at the injection site.
    • Element Detail

      • value

        java.lang.String value
        Name for factory arguments, which must match the name at the injection site. Optional if source is compiled with parameter names (compile with debug info or with -parameters switch).
        Returns:
        the name of the factory argument, or empty if name should be determined via reflection
        Default:
        ""