![JAR search and dependency download from the Maven repository](/logo.png)
net.redpipe.engine.resteasy.SQLConnectionInjector Maven / Gradle / Ivy
package net.redpipe.engine.resteasy;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import javax.ws.rs.ext.Provider;
import org.jboss.resteasy.spi.ContextInjector;
import io.reactivex.Single;
import io.vertx.reactivex.ext.sql.SQLConnection;
import net.redpipe.engine.core.AppGlobals;
@Provider
public class SQLConnectionInjector implements ContextInjector, SQLConnection>{
@Override
public Single resolve(Class extends Single> rawType, Type genericType,
Annotation[] annotations) {
return AppGlobals.get().getDbConnection();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy