/** * Initializes a {@link DefaultCommandGateway} as specified through this Builder. * * @return a {@link DefaultCommandGateway} as specified through this Builder */ public DefaultCommandGateway build() { return new DefaultCommandGateway(this); } }
/** * Initializes a {@link DefaultCommandGateway} as specified through this Builder. * * @return a {@link DefaultCommandGateway} as specified through this Builder */ public DefaultCommandGateway build() { return new DefaultCommandGateway(this); } }
@Override public DefaultCommandGateway get() { return new DefaultCommandGateway(commandBus); } }
@Bean public CommandGateway commandGateway(CommandBus commandBus) { return new DefaultCommandGateway(commandBus); }
/** * Returns a {@link DefaultCommandGateway} that will use the configuration's {@link CommandBus} to dispatch * commands. * * @param config The configuration that supplies the command bus. * @return The default command gateway. */ protected CommandGateway defaultCommandGateway(Configuration config) { return new DefaultCommandGateway(config.commandBus()); }
@Bean public DefaultCommandGateway commandGateway() { return new DefaultCommandGateway(commandBus()); }