io.quarkiverse.doma.runtime.DataSourceNameResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-doma Show documentation
Show all versions of quarkus-doma Show documentation
Simplify your database accesses with compile-time code generation
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);
}
}
}