@AutoConfiguration @ConditionalOnBean(value=jakarta.persistence.EntityManagerFactory.class) @ConditionalOnMissingBean(value={EventStorageEngine.class,EventBus.class,EventStore.class}) @AutoConfigureAfter(value={AxonServerBusAutoConfiguration.class,org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration.class}) @AutoConfigureBefore(value=AxonAutoConfiguration.class) public class JpaEventStoreAutoConfiguration extends Object
Constructor and Description |
---|
JpaEventStoreAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
EventStorageEngine |
eventStorageEngine(Serializer defaultSerializer,
PersistenceExceptionResolver persistenceExceptionResolver,
Serializer eventSerializer,
Configuration configuration,
EntityManagerProvider entityManagerProvider,
TransactionManager transactionManager) |
@Bean public EventStorageEngine eventStorageEngine(Serializer defaultSerializer, PersistenceExceptionResolver persistenceExceptionResolver, @Qualifier(value="eventSerializer") Serializer eventSerializer, Configuration configuration, EntityManagerProvider entityManagerProvider, TransactionManager transactionManager)
Copyright © 2010–2024. All rights reserved.