colesico.framework.jdbi.DefaultJdbiConfigProducer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of colesico-jdbi Show documentation
Show all versions of colesico-jdbi Show documentation
Colesico framework jDBI integration
The newest version!
// This is automatically generated file. Do not modify!
package colesico.framework.jdbi;
import colesico.framework.assist.codegen.Genstamp;
import colesico.framework.ioc.conditional.Requires;
import colesico.framework.ioc.production.Classed;
import colesico.framework.ioc.production.Produce;
import colesico.framework.ioc.production.Producer;
import colesico.framework.ioc.production.Supplier;
import javax.inject.Singleton;
import org.jdbi.v3.core.Jdbi;
@Genstamp(
generator = "colesico.framework.config.codegen.IocGenerator",
timestamp = "2023-11-27T16:01:16.670Z",
hashId = "8e488a13-e171-4823-8d65-00e7a86d6022"
)
@Producer
@Requires(JdbiConditions.DefaultConfig.class)
@Produce(
value = DefaultJdbiConfig.class,
scoped = Singleton.class
)
public class DefaultJdbiConfigProducer {
@Classed(DefaultJdbiConfig.class)
public Jdbi getJdbiWithDefaultJdbiConfig(
@Classed(JdbiConfigPrototype.class) final Supplier factory,
final DefaultJdbiConfig config) {
return factory.get(config);
}
}