Annotation Interface Parameter


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

Should be applied only to constructor arguments and Bean factory methods

Since:
1.0
Author:
Graeme Rocher
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Specifies the parameter name.
  • Element Details

    • 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:
      ""