/** * Validates whether the fields contained in this Builder are set accordingly. * * @throws AxonConfigurationException if one field is asserted to be incorrect according to the Builder's * specifications */ @Override protected void validate() throws AxonConfigurationException { super.validate(); assertNonNull(storageEngine, "The EventStorageEngine is a hard requirement and should be provided"); } }
/** * Instantiate an {@link AbstractEventBus} based on the fields contained in the {@link Builder}. * * @param builder the {@link Builder} used to instantiate an {@link AbstractEventBus} instance */ protected AbstractEventBus(Builder builder) { builder.validate(); this.messageMonitor = builder.messageMonitor; }
/** * Validates whether the fields contained in this Builder are set accordingly. * * @throws AxonConfigurationException if one field is asserted to be incorrect according to the Builder's * specifications */ @Override protected void validate() throws AxonConfigurationException { super.validate(); } }
/** * Instantiate an {@link AbstractEventBus} based on the fields contained in the {@link Builder}. * * @param builder the {@link Builder} used to instantiate an {@link AbstractEventBus} instance */ protected AbstractEventBus(Builder builder) { builder.validate(); this.messageMonitor = builder.messageMonitor; }
/** * Validates whether the fields contained in this Builder are set accordingly. * * @throws AxonConfigurationException if one field is asserted to be incorrect according to the Builder's * specifications */ @Override protected void validate() throws AxonConfigurationException { super.validate(); } }
/** * Validates whether the fields contained in this Builder are set accordingly. * * @throws AxonConfigurationException if one field is asserted to be incorrect according to the Builder's * specifications */ @Override protected void validate() throws AxonConfigurationException { super.validate(); assertNonNull(storageEngine, "The EventStorageEngine is a hard requirement and should be provided"); } }