Class ContextualAwareDataSource

java.lang.Object
io.micronaut.data.connection.jdbc.advice.ContextualAwareDataSource
All Implemented Interfaces:
io.micronaut.context.event.BeanCreatedEventListener<DataSource>, EventListener

@Singleton public final class ContextualAwareDataSource extends Object implements io.micronaut.context.event.BeanCreatedEventListener<DataSource>
Contextual aware data source implementation.
Since:
1.0.1
Author:
graemerocher
  • Constructor Details

    • ContextualAwareDataSource

      public ContextualAwareDataSource(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>