Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Commit

Permalink
feat(spring): make new bean conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
robfletcher committed Aug 27, 2018
1 parent 02e7d4a commit 90e6e13
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class QueueConfiguration {
}

@Bean
@ConditionalOnMissingBean(QueueExecutor::class)
fun queueExecutor(messageHandlerPool: ThreadPoolTaskExecutor) =
object : QueueExecutor<ThreadPoolTaskExecutor>(messageHandlerPool) {
override fun hasCapacity() =
Expand Down

0 comments on commit 90e6e13

Please sign in to comment.