Skip to content

Instantly share code, notes, and snippets.

@lordofthejars
Created March 25, 2014 17:21
Show Gist options
  • Save lordofthejars/9766737 to your computer and use it in GitHub Desktop.
Save lordofthejars/9766737 to your computer and use it in GitHub Desktop.
import java.net.UnknownHostException;
import com.mongodb.MongoClient;
public class MongoProvider {
private String address;
private int port;
public MongoClient mongoClient() throws UnknownHostException {
return new MongoClient(address, port);
}
public void setAddress(String address) {
this.address = address;
}
public void setPort(int port) {
this.port = port;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment