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

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> rawType, Type genericType,
			Annotation[] annotations) {
		return AppGlobals.get().getDbConnection();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy