Annotation Interface RefName


@Target(FIELD) @Retention(RUNTIME) @Documented @MinMuleVersion("4.5.0") public @interface RefName
This annotation is meant to be applied on fields of classes which are serving as top level elements which can be referenced by name, such as configs or global objects.

This annotation signals that the target field should be injected with the name that the element has received on the application.

This implies the following restrictions:

  • The field should be of type String
  • No two fields in the same class should bear this annotation
  • Since:
    1.0