feat(REQ-2924) - 移除 starter 的 Bean 注册
This commit is contained in:
parent
dbfc060791
commit
80af410408
@ -139,6 +139,7 @@ public class StarterRPCInvokeMQConfiguration {
|
||||
}
|
||||
|
||||
@Bean(WORKFLOW_ENGINE_STARTER_EVENT_HANDLER_REPOSITORY_BEAN_NAME)
|
||||
@ConditionalOnProperty(prefix = "rocketmq", value = "name-server")
|
||||
@ConditionalOnMissingBean(name = WORKFLOW_ENGINE_STARTER_EVENT_HANDLER_REPOSITORY_BEAN_NAME)
|
||||
public EventHandlerRepository workflowEngineStarterEventHandlerRepository() {
|
||||
return new EventHandlerRepository((ex, logText) -> {
|
||||
@ -150,6 +151,7 @@ public class StarterRPCInvokeMQConfiguration {
|
||||
}
|
||||
|
||||
@Bean(WORKFLOW_ENGINE_STARTER_EVENT_CONSUMER_BEAN_NAME)
|
||||
@ConditionalOnProperty(prefix = "rocketmq", value = "name-server")
|
||||
@ConditionalOnMissingBean(name = WORKFLOW_ENGINE_STARTER_EVENT_CONSUMER_BEAN_NAME)
|
||||
public EventConsumer workflowEngineStarterEventConsumer(@Qualifier(WORKFLOW_ENGINE_STARTER_EVENT_HANDLER_REPOSITORY_BEAN_NAME) EventHandlerRepository workflowEngineStarterEventHandlerRepository) {
|
||||
Consumer<EventConsumer.EventWrapper> callback = eventWrapper -> {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user