@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) |
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)
applicationContext
- The application contexteventPublisher
- The event publisher