Builder

public class Builder extends BusBuilder<B, T, E, C, D>

The Builder for CommandBus.

Functions

Link copied to clipboard
public CommandBus build()
Builds an instance of CommandBus.
Link copied to clipboard
protected CommandDispatcherRegistry newRegistry()
Link copied to clipboard
Returns this reference to avoid redundant casts.
Link copied to clipboard
Link copied to clipboard

Inherited functions

Link copied to clipboard
public final B addListener(Listener<E> listener)
Adds a listener of the message posted to the bus being build.
Link copied to clipboard
public final B appendFilter(BusFilter<E> filter)
Adds the given filter to the builder.
Link copied to clipboard
protected void checkFieldsSet()
Link copied to clipboard
protected final BoundedContext context()
Link copied to clipboard
public final Iterable<BusFilter<E>> filters()
Obtains the filters added to this this builder by the time of the call.
Link copied to clipboard
public B injectContext(BoundedContext context)
Link copied to clipboard
public B injectSystem(SystemWriteSide writeSide)
Inject the SystemWriteSide of the Bounded Context to which the built bus belongs.
Link copied to clipboard
Inject the TenantIndex of the Bounded Context to which the built bus belongs.
Link copied to clipboard
public final Set<Listener<E>> listeners()
Obtains immutable set of listeners added to the builder by the time of the call.
Link copied to clipboard
public final B removeListener(Listener<E> listener)
Removes the listener.
Link copied to clipboard
Obtains a SystemWriteSide set in the builder.
Link copied to clipboard
Obtains a TenantIndex set in the builder.