Class P6SpyConfiguration

java.lang.Object
com.github.gavlyukovskiy.boot.jdbc.decorator.p6spy.P6SpyConfiguration
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

@ConditionalOnMissingBean(type="org.springframework.cloud.sleuth.autoconfig.instrument.jdbc.P6SpyConfiguration") @ConditionalOnClass(com.p6spy.engine.spy.P6DataSource.class) public class P6SpyConfiguration extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Configuration for integration with p6spy, allows to define custom JdbcEventListener.
  • Constructor Details

    • P6SpyConfiguration

      public P6SpyConfiguration()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
    • jdbcEventListenerFactory

      @Bean @ConditionalOnMissingBean public com.p6spy.engine.spy.JdbcEventListenerFactory jdbcEventListenerFactory()
    • p6SpyDataSourceDecorator

      @Bean public P6SpyDataSourceDecorator p6SpyDataSourceDecorator(com.p6spy.engine.spy.JdbcEventListenerFactory jdbcEventListenerFactory)