Annotation Type Parameter


  • @Target({FIELD,METHOD,PARAMETER,ANNOTATION_TYPE})
    @Retention(RUNTIME)
    @Documented
    @Qualifier
    @Bindable
    public @interface Parameter

    Specifies that an argument to a bean constructor is user provided and a ParametrizedBeanFactory should be generated.

    Should be applied only to constructor arguments and Bean factory methods

    Since:
    1.0
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String value
      Specifies the parameter name.
    • Element Detail

      • value

        @AliasFor(annotation=io.micronaut.core.bind.annotation.Bindable.class,
                  member="value")
        java.lang.String value
        Specifies the parameter name. Useful as metadata at times for reflection on classes already compiled without -parameters argument to javac
        Returns:
        An optional name of the parameter.
        Default:
        ""