@Configuration @ConditionalOnBean(value=javax.sql.DataSource.class) @AutoConfigureAfter(value={JpaAutoConfiguration.class,JpaEventStoreAutoConfiguration.class}) public class JdbcAutoConfiguration extends Object
Constructor and Description |
---|
JdbcAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
ConnectionProvider |
connectionProvider(DataSource dataSource) |
EventStorageEngine |
eventStorageEngine(Serializer defaultSerializer,
PersistenceExceptionResolver persistenceExceptionResolver,
Serializer eventSerializer,
AxonConfiguration configuration,
ConnectionProvider connectionProvider,
TransactionManager transactionManager) |
PersistenceExceptionResolver |
jdbcSQLErrorCodesResolver() |
JdbcSagaStore |
sagaStore(ConnectionProvider connectionProvider,
Serializer serializer) |
TokenStore |
tokenStore(ConnectionProvider connectionProvider,
Serializer serializer) |
@Bean @ConditionalOnMissingBean(value={EventStorageEngine.class,EventBus.class}) public EventStorageEngine eventStorageEngine(Serializer defaultSerializer, PersistenceExceptionResolver persistenceExceptionResolver, @Qualifier(value="eventSerializer") Serializer eventSerializer, AxonConfiguration configuration, ConnectionProvider connectionProvider, TransactionManager transactionManager)
@Bean @ConditionalOnMissingBean(value={PersistenceExceptionResolver.class,EventStore.class}) public PersistenceExceptionResolver jdbcSQLErrorCodesResolver()
@Bean @ConditionalOnMissingBean public ConnectionProvider connectionProvider(DataSource dataSource)
@Bean @ConditionalOnMissingBean public TokenStore tokenStore(ConnectionProvider connectionProvider, Serializer serializer)
@Bean @ConditionalOnMissingBean(value=SagaStore.class) public JdbcSagaStore sagaStore(ConnectionProvider connectionProvider, Serializer serializer)
Copyright © 2010–2022. All rights reserved.