@Singleton
public class DataSourceMigrationRunner
extends java.lang.Object
implements io.micronaut.context.event.BeanCreatedEventListener<javax.sql.DataSource>
DataSource
defined for it.Constructor and Description |
---|
DataSourceMigrationRunner(io.micronaut.context.ApplicationContext applicationContext,
io.micronaut.context.event.ApplicationEventPublisher eventPublisher,
io.micronaut.jdbc.DataSourceResolver dataSourceResolver) |
Modifier and Type | Method and Description |
---|---|
javax.sql.DataSource |
onCreated(io.micronaut.context.event.BeanCreatedEvent<javax.sql.DataSource> event) |
public DataSourceMigrationRunner(io.micronaut.context.ApplicationContext applicationContext, io.micronaut.context.event.ApplicationEventPublisher eventPublisher, @Nullable io.micronaut.jdbc.DataSourceResolver dataSourceResolver)
applicationContext
- The application contexteventPublisher
- The event publisherdataSourceResolver
- The data source resolver