All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.agroal.runtime.AgroalDataSourcesInitializer Maven / Gradle / Ivy

package io.quarkus.agroal.runtime;

import java.util.List;

import jakarta.enterprise.event.Observes;

import io.agroal.api.AgroalDataSource;
import io.quarkus.arc.All;
import io.quarkus.runtime.StartupEvent;

/**
 * Make sure datasources are initialized at startup.
 */
public class AgroalDataSourcesInitializer {

    void init(@Observes StartupEvent event, @All List dataSources) {
        // nothing to do here, eager injection will initialize the beans
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy