Hi Allard,
Yes, I defined repository with ehcache in my config without ParameterResolverFactory in the constructor param of my repository.
.
I just injected it (it should be defined already in axon config context) in my parameters like:
@Bean
public Repository<BusinessStreamRun> businessStreamRunRepository(AggregateFactory<BusinessStreamRun> businessStreamRunAggregateFactory,
EventStore eventStore,
ParameterResolverFactory parameterResolverFactory,
Cache businessStreamRunCache) {
return new CachingEventSourcingRepository<>(businessStreamRunAggregateFactory,
eventStore,
new PessimisticLockFactory(),
businessStreamRunCache,
parameterResolverFactory,
NoSnapshotTriggerDefinition.INSTANCE);
}
It seems working now, is that a good solution ?
Regards