@ConditionalOnBean(value=javax.persistence.EntityManagerFactory.class) @Configuration public class JpaAutoConfiguration extends Object
Constructor and Description |
---|
JpaAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
EntityManagerProvider |
entityManagerProvider() |
EventStorageEngine |
eventStorageEngine(Serializer serializer,
PersistenceExceptionResolver persistenceExceptionResolver,
Serializer eventSerializer,
AxonConfiguration configuration,
EntityManagerProvider entityManagerProvider,
TransactionManager transactionManager) |
JpaSagaStore |
sagaStore(Serializer serializer,
EntityManagerProvider entityManagerProvider) |
TokenStore |
tokenStore(Serializer serializer,
EntityManagerProvider entityManagerProvider) |
@ConditionalOnMissingBean(value={EventStorageEngine.class,EventStore.class}) @Bean public EventStorageEngine eventStorageEngine(Serializer serializer, PersistenceExceptionResolver persistenceExceptionResolver, @Qualifier(value="eventSerializer") Serializer eventSerializer, AxonConfiguration configuration, EntityManagerProvider entityManagerProvider, TransactionManager transactionManager)
@ConditionalOnMissingBean @Bean public EntityManagerProvider entityManagerProvider()
@ConditionalOnMissingBean @Bean public TokenStore tokenStore(Serializer serializer, EntityManagerProvider entityManagerProvider)
@ConditionalOnMissingBean(value=SagaStore.class) @Bean public JpaSagaStore sagaStore(Serializer serializer, EntityManagerProvider entityManagerProvider)
Copyright © 2010–2018. All rights reserved.