Class TransactionAwareDataSource

  • All Implemented Interfaces:
    io.micronaut.context.event.BeanCreatedEventListener<javax.sql.DataSource>, java.util.EventListener

    @Singleton
    @Requires(missingBeans=io.micronaut.jdbc.spring.DataSourceTransactionManagerFactory.class)
    public class TransactionAwareDataSource
    extends java.lang.Object
    implements io.micronaut.context.event.BeanCreatedEventListener<javax.sql.DataSource>
    Transaction aware data source implementation.
    Since:
    1.0.1
    Author:
    graemerocher
    • Constructor Summary

      Constructors 
      Constructor Description
      TransactionAwareDataSource​(io.micronaut.context.BeanLocator beanLocator)
      Create a new DelegatingDataSource.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.sql.DataSource onCreated​(io.micronaut.context.event.BeanCreatedEvent<javax.sql.DataSource> event)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TransactionAwareDataSource

        public TransactionAwareDataSource​(io.micronaut.context.BeanLocator beanLocator)
        Create a new DelegatingDataSource.
        Parameters:
        beanLocator - The bean locator
    • Method Detail

      • onCreated

        public javax.sql.DataSource onCreated​(io.micronaut.context.event.BeanCreatedEvent<javax.sql.DataSource> event)
        Specified by:
        onCreated in interface io.micronaut.context.event.BeanCreatedEventListener<javax.sql.DataSource>