public abstract class CommonAggregateRepository<T extends CommandProcessingAggregate<T,CT>,CT extends Command>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.Class<T> |
clasz |
protected AggregateRepositoryInterceptor<T,CT> |
interceptor |
protected MissingApplyEventMethodStrategy |
missingApplyEventMethodStrategy |
Constructor and Description |
---|
CommonAggregateRepository(java.lang.Class<T> clasz) |
Modifier and Type | Method and Description |
---|---|
void |
setInterceptor(AggregateRepositoryInterceptor<T,CT> interceptor) |
void |
setMissingApplyEventMethodStrategy(MissingApplyEventMethodStrategy missingApplyEventMethodStrategy) |
protected UpdateEventsAndOptions |
transformUpdateEventsAndOptions(java.util.Optional<UpdateOptions> updateOptions,
T aggregate,
CommandOutcome commandResult) |
protected java.lang.Class<T extends CommandProcessingAggregate<T,CT>> clasz
protected AggregateRepositoryInterceptor<T extends CommandProcessingAggregate<T,CT>,CT extends Command> interceptor
protected MissingApplyEventMethodStrategy missingApplyEventMethodStrategy
public CommonAggregateRepository(java.lang.Class<T> clasz)
public void setMissingApplyEventMethodStrategy(MissingApplyEventMethodStrategy missingApplyEventMethodStrategy)
public void setInterceptor(AggregateRepositoryInterceptor<T,CT> interceptor)
protected UpdateEventsAndOptions transformUpdateEventsAndOptions(java.util.Optional<UpdateOptions> updateOptions, T aggregate, CommandOutcome commandResult)