/** * Sets the {@link MessageDispatchInterceptor}s which are invoked before dispatching a {@link CommandMessage} on * the {@link CommandBus}. Note that the given {@code dispatchInterceptors} are applied only on commands sent * through gateways that have been created using this factory. * * @param dispatchInterceptors an array of {@link MessageDispatchInterceptor}s which are invoked before * dispatching a {@link CommandMessage} on the {@link CommandBus} * @return the current Builder instance, for fluent interfacing */ public Builder dispatchInterceptors( MessageDispatchInterceptor<? super CommandMessage<?>>... dispatchInterceptors) { return dispatchInterceptors(Arrays.asList(dispatchInterceptors)); }
/** * Sets the {@link MessageDispatchInterceptor}s which are invoked before dispatching a {@link CommandMessage} on * the {@link CommandBus}. Note that the given {@code dispatchInterceptors} are applied only on commands sent * through gateways that have been created using this factory. * * @param dispatchInterceptors an array of {@link MessageDispatchInterceptor}s which are invoked before * dispatching a {@link CommandMessage} on the {@link CommandBus} * @return the current Builder instance, for fluent interfacing */ public Builder dispatchInterceptors( MessageDispatchInterceptor<? super CommandMessage<?>>... dispatchInterceptors) { return dispatchInterceptors(Arrays.asList(dispatchInterceptors)); }