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

io.quarkiverse.doma.runtime.DataSourceNameResolver Maven / Gradle / Ivy

The newest version!
package io.quarkiverse.doma.runtime;

import java.util.Objects;

import jakarta.inject.Singleton;

import io.quarkus.arc.DefaultBean;
import io.quarkus.arc.Unremovable;

public interface DataSourceNameResolver {

    String resolve(String candidateName);

    @Singleton
    @DefaultBean
    @Unremovable
    class DefaultDataSourceNameResolver implements DataSourceNameResolver {

        @Override
        public String resolve(String candidateName) {
            return Objects.requireNonNull(candidateName);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy