Advertisement
Guest User

Untitled

a guest
May 22nd, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.35 KB | None | 0 0
  1. package com {
  2.   package scalainaction {
  3.     package mongo {
  4.       import com.mongodb.Mongo
  5.      
  6.       class MongoClient(val host: String, val port: Int) {
  7.         require(host != null, "You have to provide a host name")
  8.         private val underlying = new Mongo(host, port)
  9.      
  10.         def this() = this("127.0.0.1", 27017)
  11.       }
  12.     }
  13.   }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement