Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Mysql Example with Factory
import java.sql.Connection;
import javax.inject.Inject;
import io.fabric8.annotations.ServiceName;
public class MysqlExampleWithFactory {
private Connection connection;
public MysqlExampleWithProtocol(@Inject @ServiceName("mysql") Connection connection) {
this.connection = connection;
}
//More stuff
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment