Skip to content

Commit

Permalink
Merge pull request #32689 from gsmet/mailer-default-beans
Browse files Browse the repository at this point in the history
Make mailer beans default beans
  • Loading branch information
geoand authored Apr 18, 2023
2 parents 15cd5da + bbd53ba commit c205249
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ private void generateMailerBeansForName(String name,
.scope(Singleton.class)
.qualifiers(qualifier)
.unremovable()
.defaultBean()
.setRuntimeInit()
.addInjectionPoint(ClassType.create(DotName.createSimple(Mailers.class)))
.createWith(recorder.mailClientFunction(name, mailersRuntimeConfig))
Expand All @@ -159,6 +160,7 @@ private void generateMailerBeansForName(String name,
.scope(Singleton.class)
.qualifiers(qualifier)
.unremovable()
.defaultBean()
.setRuntimeInit()
.addInjectionPoint(ClassType.create(DotName.createSimple(Mailers.class)))
.createWith(recorder.reactiveMailClientFunction(name, mailersRuntimeConfig))
Expand All @@ -167,6 +169,7 @@ private void generateMailerBeansForName(String name,
.scope(Singleton.class)
.qualifiers(qualifier)
.unremovable()
.defaultBean()
.setRuntimeInit()
.addInjectionPoint(ClassType.create(DotName.createSimple(Mailers.class)))
.createWith(recorder.mailerFunction(name, mailersRuntimeConfig))
Expand All @@ -175,6 +178,7 @@ private void generateMailerBeansForName(String name,
.scope(Singleton.class)
.qualifiers(qualifier)
.unremovable()
.defaultBean()
.setRuntimeInit()
.addInjectionPoint(ClassType.create(DotName.createSimple(Mailers.class)))
.createWith(recorder.reactiveMailerFunction(name, mailersRuntimeConfig))
Expand All @@ -183,6 +187,7 @@ private void generateMailerBeansForName(String name,
.scope(Singleton.class)
.qualifiers(qualifier)
.unremovable()
.defaultBean()
.setRuntimeInit()
.addInjectionPoint(ClassType.create(DotName.createSimple(Mailers.class)))
.createWith(recorder.mockMailboxFunction(name, mailersRuntimeConfig))
Expand Down

0 comments on commit c205249

Please sign in to comment.