Created
March 25, 2014 17:21
-
-
Save lordofthejars/9766737 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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