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()));
}
Aggregations