/** * Instantiate a {@link AbstractSnapshotter} based on the fields contained in the {@link Builder}. * <p> * Will assert that the {@link EventStore} is not {@code null}, and will throw an * {@link AxonConfigurationException} if it is {@code null}. * * @param builder the {@link Builder} used to instantiate a {@link AbstractSnapshotter} instance */ protected AbstractSnapshotter(Builder builder) { builder.validate(); this.eventStore = builder.eventStore; this.executor = builder.executor; this.transactionManager = builder.transactionManager; }
/** * 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 a {@link AbstractSnapshotter} based on the fields contained in the {@link Builder}. * <p> * Will assert that the {@link EventStore} is not {@code null}, and will throw an * {@link AxonConfigurationException} if it is {@code null}. * * @param builder the {@link Builder} used to instantiate a {@link AbstractSnapshotter} instance */ protected AbstractSnapshotter(Builder builder) { builder.validate(); this.eventStore = builder.eventStore; this.executor = builder.executor; this.transactionManager = builder.transactionManager; }
/** * 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(); } }