/** * Instantiate a Builder to be able to create a {@link AggregateSnapshotter}. * <p> * The {@link Executor} is defaulted to an {@link org.axonframework.common.DirectExecutor#INSTANCE} and the * {@link TransactionManager} defaults to a {@link org.axonframework.common.transaction.NoTransactionManager}. * Additionally, this Builder has convenience functions to default the {@link ParameterResolverFactory} and * {@link HandlerDefinition} based on instances of these available on the classpath in case these are not provided * (respectively {@link Builder#buildParameterResolverFactory()} and {@link Builder#buildHandlerDefinition()}). * Upon instantiation of a {@link AggregateSnapshotter}, it is recommended to use these function to set those * fields. * <p> * The {@link EventStore} is a <b>hard requirement</b> and as such should be provided. * * @return a Builder to be able to create a {@link AggregateSnapshotter} * * @see ClasspathParameterResolverFactory * @see ClasspathHandlerDefinition */ public static Builder builder() { return new Builder(); }
/** * Instantiate a Builder to be able to create a {@link AggregateSnapshotter}. * <p> * The {@link Executor} is defaulted to an {@link org.axonframework.common.DirectExecutor#INSTANCE} and the * {@link TransactionManager} defaults to a {@link org.axonframework.common.transaction.NoTransactionManager}. * Additionally, this Builder has convenience functions to default the {@link ParameterResolverFactory} and * {@link HandlerDefinition} based on instances of these available on the classpath in case these are not provided * (respectively {@link Builder#buildParameterResolverFactory()} and {@link Builder#buildHandlerDefinition()}). * Upon instantiation of a {@link AggregateSnapshotter}, it is recommended to use these function to set those * fields. * <p> * The {@link EventStore} is a <b>hard requirement</b> and as such should be provided. * * @return a Builder to be able to create a {@link AggregateSnapshotter} * * @see ClasspathParameterResolverFactory * @see ClasspathHandlerDefinition */ public static Builder builder() { return new Builder(); }