Skip to content

Commit

Permalink
Remove setting role type BeanDefinition.ROLE_INFRASTRUCTURE of bean…
Browse files Browse the repository at this point in the history
… `grailsEventBus`
  • Loading branch information
rainboyan committed Sep 14, 2024
1 parent 5288747 commit c560540
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import groovy.util.logging.Slf4j
import org.grails.events.bus.spring.EventBusFactoryBean
import org.grails.events.gorm.GormDispatcherRegistrar
import org.grails.events.spring.SpringEventTranslator
import org.springframework.beans.factory.config.BeanDefinition
import org.springframework.context.annotation.Role

/**
* A plugin that integrates Reactor into Grails
Expand All @@ -45,9 +43,7 @@ class EventBusGrailsPlugin extends Plugin {
Closure doWithSpring() {
{->
Config config = grailsApplication.config
grailsEventBus(EventBusFactoryBean) { bean ->
bean.role = BeanDefinition.ROLE_INFRASTRUCTURE
}
grailsEventBus(EventBusFactoryBean)
gormDispatchEventRegistrar(GormDispatcherRegistrar, ref("grailsEventBus"))

// make it possible to disable reactor events
Expand Down

0 comments on commit c560540

Please sign in to comment.