Annotation Type MailerName


  • @Target({TYPE,METHOD,FIELD,PARAMETER})
    @Retention(RUNTIME)
    @Documented
    @Qualifier
    public @interface MailerName
    Marker annotation to select the Mailer. For example, if the Mailer is configured like so in application.properties:
     quarkus.mailer.client1.host = smtp.example.com
     
    Then to inject the proper Mailer, you would need to use MailerName like indicated below:
         @Inject
         @MailerName("client1")
         Mailer mailer;
     
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String value
      The Mailer name.
    • Element Detail

      • value

        String value
        The Mailer name.
        Default:
        ""