Skip to content

Commit

Permalink
Make mailer beans default beans
Browse files Browse the repository at this point in the history
Fixes #32685
  • Loading branch information
gsmet committed Apr 17, 2023
1 parent ea44e8b commit bbd53ba
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 bbd53ba

Please sign in to comment.