Class TransactionAwareDataSource

java.lang.Object
io.micronaut.transaction.jdbc.TransactionAwareDataSource
All Implemented Interfaces:
io.micronaut.context.event.BeanCreatedEventListener<DataSource>, EventListener

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

    • TransactionAwareDataSource

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

    • onCreated

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