com.mongodb
Class Mongo.Holder

java.lang.Object
  extended by com.mongodb.Mongo.Holder
Enclosing class:
Mongo

public static class Mongo.Holder
extends Object

Mongo.Holder is if you want to have a static place to hold instances of Mongo security is not enforced at this level, so need to do on your side


Constructor Summary
Mongo.Holder()
           
 
Method Summary
 Mongo connect(MongoURI uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mongo.Holder

public Mongo.Holder()
Method Detail

connect

public Mongo connect(MongoURI uri)
              throws MongoException,
                     UnknownHostException
Throws:
MongoException
UnknownHostException