@Singleton public class AlternativeMigrationRunner extends java.lang.Object implements io.micronaut.context.event.BeanCreatedEventListener<FlywayConfigurationProperties>
DataSource
is only specified in Flyway configuration and there is no Micronaut
DataSource defined.Constructor and Description |
---|
AlternativeMigrationRunner(io.micronaut.context.ApplicationContext applicationContext,
io.micronaut.context.event.ApplicationEventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
FlywayConfigurationProperties |
onCreated(io.micronaut.context.event.BeanCreatedEvent<FlywayConfigurationProperties> event) |
public AlternativeMigrationRunner(io.micronaut.context.ApplicationContext applicationContext, io.micronaut.context.event.ApplicationEventPublisher eventPublisher)
applicationContext
- The application contexteventPublisher
- The event publisherpublic FlywayConfigurationProperties onCreated(io.micronaut.context.event.BeanCreatedEvent<FlywayConfigurationProperties> event)
onCreated
in interface io.micronaut.context.event.BeanCreatedEventListener<FlywayConfigurationProperties>