Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com {
- package scalainaction {
- package mongo {
- import com.mongodb.Mongo
- class MongoClient(val host: String, val port: Int) {
- require(host != null, "You have to provide a host name")
- private val underlying = new Mongo(host, port)
- def this() = this("127.0.0.1", 27017)
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement