Package io.quarkus.mailer
Annotation Interface 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.comThen to inject the proper
Mailer
, you would need to use MailerName
like indicated below:
@Inject @MailerName("client1") Mailer mailer;
-
Nested Class Summary
-
Optional Element Summary
-
Element Details
-
value
String valueThe Mailer name.- Default:
- ""
-