Search in sources :

Example 1 with TracingHook

use of bio.terra.common.stairway.TracingHook in project terra-resource-buffer by DataBiosphere.

the class StartupInitializer method initializeStairwayComponent.

// Initialize StairwayComponent's DataSource. This is necessary because the data source is
// not yet a bean.
private static void initializeStairwayComponent(ApplicationContext applicationContext) {
    final StairwayDatabaseConfiguration stairwayDatabaseConfiguration = applicationContext.getBean(StairwayDatabaseConfiguration.class);
    applicationContext.getBean(StairwayComponent.class).initialize(stairwayDatabaseConfiguration.getDataSource(), applicationContext, ImmutableList.of(new TracingHook()));
}
Also used : StairwayComponent(bio.terra.common.stairway.StairwayComponent) StairwayDatabaseConfiguration(bio.terra.buffer.app.configuration.StairwayDatabaseConfiguration) TracingHook(bio.terra.common.stairway.TracingHook)

Aggregations

StairwayDatabaseConfiguration (bio.terra.buffer.app.configuration.StairwayDatabaseConfiguration)1 StairwayComponent (bio.terra.common.stairway.StairwayComponent)1 TracingHook (bio.terra.common.stairway.TracingHook)1