Class JpaEventsConfiguration


  • @Configuration("jpaEventsConfiguration")
    @EnableConfigurationProperties(org.apereo.cas.configuration.CasConfigurationProperties.class)
    @EnableTransactionManagement(proxyTargetClass=true)
    public class JpaEventsConfiguration
    extends java.lang.Object
    This is JpaEventsConfiguration, defines certain beans via configuration while delegating some to Spring namespaces inside the context config file.
    Since:
    5.0.0
    • Constructor Detail

      • JpaEventsConfiguration

        public JpaEventsConfiguration()
    • Method Detail

      • jpaEventVendorAdapter

        @RefreshScope
        @Bean
        public org.springframework.orm.jpa.JpaVendorAdapter jpaEventVendorAdapter()
      • dataSourceEvent

        @Bean
        @ConditionalOnMissingBean(name="dataSourceEvent")
        @RefreshScope
        public javax.sql.DataSource dataSourceEvent()
      • jpaEventPackagesToScan

        @Bean
        public java.util.Set<java.lang.String> jpaEventPackagesToScan()
      • eventsEntityManagerFactory

        @Lazy
        @Bean
        public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean eventsEntityManagerFactory()
      • transactionManagerEvents

        @Autowired
        @Bean
        public org.springframework.transaction.PlatformTransactionManager transactionManagerEvents​(@Qualifier("eventsEntityManagerFactory")
                                                                                                   javax.persistence.EntityManagerFactory emf)
      • jpaEventRepositoryFilter

        @ConditionalOnMissingBean(name="jpaEventRepositoryFilter")
        @Bean
        public org.apereo.cas.support.events.CasEventRepositoryFilter jpaEventRepositoryFilter()
      • casEventRepository

        @Bean
        @Autowired
        public org.apereo.cas.support.events.CasEventRepository casEventRepository​(@Qualifier("transactionManagerEvents")
                                                                                   org.springframework.transaction.PlatformTransactionManager transactionManager)