![JAR search and dependency download from the Maven repository](/logo.png)
com.bendb.dropwizard.jooq.jersey.DSLContextFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dropwizard-jooq Show documentation
Show all versions of dropwizard-jooq Show documentation
Addon bundle for Dropwizard to support jOOQ for database access
The newest version!
package com.bendb.dropwizard.jooq.jersey;
import org.glassfish.hk2.api.Factory;
import org.jooq.Configuration;
import org.jooq.DSLContext;
import org.jooq.impl.DSL;
/**
* Bind
*/
public class DSLContextFactory implements Factory {
private final Configuration configuration;
public DSLContextFactory(Configuration configuration) {
this.configuration = configuration;
}
@Override
public DSLContext provide() {
return DSL.using(configuration);
}
@Override
public void dispose(DSLContext instance) {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy