@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,
Configuration configuration,
ConnectionProvider connectionProvider,
TransactionManager transactionManager) |
PersistenceExceptionResolver |
jdbcSQLErrorCodesResolver() |
JdbcSagaStore |
sagaStore(ConnectionProvider connectionProvider,
Serializer serializer) |
JdbcSagaStore |
sagaStore(ConnectionProvider connectionProvider,
Serializer serializer,
SagaSqlSchema schema) |
TokenStore |
tokenStoreWithCustomSchema(ConnectionProvider connectionProvider,
Serializer serializer,
TokenSchema tokenSchema) |
TokenStore |
tokenStoreWithDefaultSchema(ConnectionProvider connectionProvider,
Serializer serializer) |
@Bean @ConditionalOnMissingBean(value={EventStorageEngine.class,EventBus.class}) public EventStorageEngine eventStorageEngine(Serializer defaultSerializer, PersistenceExceptionResolver persistenceExceptionResolver, @Qualifier(value="eventSerializer") Serializer eventSerializer, Configuration configuration, ConnectionProvider connectionProvider, TransactionManager transactionManager)
@Bean @ConditionalOnMissingBean(value={PersistenceExceptionResolver.class,EventStore.class}) public PersistenceExceptionResolver jdbcSQLErrorCodesResolver()
@Bean @ConditionalOnMissingBean public ConnectionProvider connectionProvider(DataSource dataSource)
@Bean(value="tokenStore") @ConditionalOnMissingBean(value=TokenStore.class) @ConditionalOnBean(value=TokenSchema.class) public TokenStore tokenStoreWithCustomSchema(ConnectionProvider connectionProvider, Serializer serializer, TokenSchema tokenSchema)
@Bean(value="tokenStore") @ConditionalOnMissingBean(value={TokenStore.class,TokenSchema.class}) public TokenStore tokenStoreWithDefaultSchema(ConnectionProvider connectionProvider, Serializer serializer)
@Bean @ConditionalOnMissingBean(value={SagaStore.class,SagaSqlSchema.class}) public JdbcSagaStore sagaStore(ConnectionProvider connectionProvider, Serializer serializer)
@Bean @ConditionalOnMissingBean(value=SagaStore.class) @ConditionalOnBean(value=SagaSqlSchema.class) public JdbcSagaStore sagaStore(ConnectionProvider connectionProvider, Serializer serializer, SagaSqlSchema schema)
Copyright © 2010–2023. All rights reserved.