@ConditionalOnBean(value=javax.sql.DataSource.class) @Configuration @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) |
PersistenceExceptionResolver |
dataSourcePersistenceExceptionResolver(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) |
@ConditionalOnMissingBean(value={EventStorageEngine.class,EventStore.class}) @Bean public EventStorageEngine eventStorageEngine(Serializer defaultSerializer, PersistenceExceptionResolver persistenceExceptionResolver, @Qualifier(value="eventSerializer") Serializer eventSerializer, AxonConfiguration configuration, ConnectionProvider connectionProvider, TransactionManager transactionManager)
@ConditionalOnMissingBean @ConditionalOnBean(value=javax.sql.DataSource.class) @Bean public PersistenceExceptionResolver dataSourcePersistenceExceptionResolver(DataSource dataSource) throws SQLException
SQLException
@ConditionalOnMissingBean(value={javax.sql.DataSource.class,PersistenceExceptionResolver.class,EventStore.class}) @Bean public PersistenceExceptionResolver jdbcSQLErrorCodesResolver()
@ConditionalOnMissingBean @Bean public ConnectionProvider connectionProvider(DataSource dataSource)
@ConditionalOnMissingBean @Bean public TokenStore tokenStore(ConnectionProvider connectionProvider, Serializer serializer)
@ConditionalOnMissingBean(value=SagaStore.class) @Bean public JdbcSagaStore sagaStore(ConnectionProvider connectionProvider, Serializer serializer)
Copyright © 2010–2019. All rights reserved.