@AutoConfiguration @ConditionalOnBean(value=jakarta.persistence.EntityManagerFactory.class) @EnableConfigurationProperties(value=TokenStoreProperties.class) @AutoConfigureAfter(value=org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration.class) public class JpaAutoConfiguration extends Object
Constructor and Description |
---|
JpaAutoConfiguration(TokenStoreProperties tokenStoreProperties) |
Modifier and Type | Method and Description |
---|---|
DeadLetterQueueProviderConfigurerModule |
deadLetterQueueProviderConfigurerModule(EventProcessorProperties eventProcessorProperties,
EntityManagerProvider entityManagerProvider,
TransactionManager transactionManager,
Serializer genericSerializer,
Serializer eventSerializer) |
EntityManagerProvider |
entityManagerProvider() |
PersistenceExceptionResolver |
persistenceExceptionResolver(DataSource dataSource) |
JpaSagaStore |
sagaStore(Serializer serializer,
EntityManagerProvider entityManagerProvider) |
TokenStore |
tokenStore(Serializer serializer,
EntityManagerProvider entityManagerProvider) |
public JpaAutoConfiguration(TokenStoreProperties tokenStoreProperties)
@Bean @ConditionalOnMissingBean public EntityManagerProvider entityManagerProvider()
@Bean @ConditionalOnMissingBean public TokenStore tokenStore(Serializer serializer, EntityManagerProvider entityManagerProvider)
@Lazy @Bean @ConditionalOnMissingBean(value=SagaStore.class) public JpaSagaStore sagaStore(Serializer serializer, EntityManagerProvider entityManagerProvider)
@Bean @ConditionalOnMissingBean @ConditionalOnBean(value=javax.sql.DataSource.class) public PersistenceExceptionResolver persistenceExceptionResolver(DataSource dataSource) throws SQLException
SQLException
@Bean @ConditionalOnMissingBean public DeadLetterQueueProviderConfigurerModule deadLetterQueueProviderConfigurerModule(EventProcessorProperties eventProcessorProperties, EntityManagerProvider entityManagerProvider, TransactionManager transactionManager, Serializer genericSerializer, @Qualifier(value="eventSerializer") Serializer eventSerializer)
Copyright © 2010–2024. All rights reserved.