Class MongoDBSourceImpl
- java.lang.Object
-
- org.apache.tapestry5.internal.mongodb.MongoDBSourceImpl
-
- All Implemented Interfaces:
MongoDBSource
public class MongoDBSourceImpl extends java.lang.Object implements MongoDBSource
Default implementation forMongoDBSource
-
-
Constructor Summary
Constructors Constructor Description MongoDBSourceImpl(org.slf4j.Logger logger, int connectionPerHost, com.mongodb.ReadPreference readPreference, com.mongodb.WriteConcern writeConcern, java.util.List<com.mongodb.ServerAddress> serverAddresses)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.mongodb.MongoClient
getMongo()
-
-
-
Constructor Detail
-
MongoDBSourceImpl
public MongoDBSourceImpl(org.slf4j.Logger logger, @Symbol("tapestry.mongodb.conns-per-host") int connectionPerHost, @Symbol("tapestry.mongodb.read_preference") com.mongodb.ReadPreference readPreference, @Symbol("tapestry.mongodb.write_concern") com.mongodb.WriteConcern writeConcern, java.util.List<com.mongodb.ServerAddress> serverAddresses)
-
-
Method Detail
-
getMongo
public com.mongodb.MongoClient getMongo()
- Specified by:
getMongo
in interfaceMongoDBSource
- Returns:
- the
MongoClient
database connection object.
-
-