Skip to content

Commit

Permalink
Revert EventProcessorInfoConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
schananas committed Mar 25, 2022
1 parent 5f68f11 commit 129f644
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@
* EventProcessor}s with AxonServer.
*
* @author Sara Pellegrini
* @deprecated because {@link EventProcessorControlService} is lifecycle aware
* @since 4.0
*/
@Deprecated
public class EventProcessorInfoConfiguration implements ModuleConfiguration {

private final Component<EventProcessorControlService> eventProcessorControlService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import org.axonframework.axonserver.connector.command.CommandLoadFactorProvider;
import org.axonframework.axonserver.connector.command.CommandPriorityCalculator;
import org.axonframework.axonserver.connector.event.axon.AxonServerEventScheduler;
import org.axonframework.axonserver.connector.processor.EventProcessorControlService;
import org.axonframework.axonserver.connector.event.axon.EventProcessorInfoConfiguration;
import org.axonframework.axonserver.connector.query.QueryPriorityCalculator;
import org.axonframework.commandhandling.distributed.AnnotationRoutingStrategy;
import org.axonframework.commandhandling.distributed.RoutingStrategy;
Expand Down Expand Up @@ -137,12 +137,13 @@ public void setApplicationContext(ApplicationContext applicationContext) throws

@Bean
@ConditionalOnMissingClass("org.axonframework.extensions.multitenancy.autoconfig.MultiTenancyAxonServerAutoConfiguration")
@ConditionalOnMissingBean
public EventProcessorControlService eventProcessorControlService(
public EventProcessorInfoConfiguration processorInfoConfiguration(
EventProcessingConfiguration eventProcessingConfiguration,
AxonServerConnectionManager connectionManager,
AxonServerConfiguration configuration) {
return new EventProcessorControlService(connectionManager,eventProcessingConfiguration,configuration);
return new EventProcessorInfoConfiguration(c -> eventProcessingConfiguration,
c -> connectionManager,
c -> configuration);
}

@Bean
Expand Down

0 comments on commit 129f644

Please sign in to comment.