public class MongodbModule extends Object
Constructor and Description |
---|
MongodbModule() |
Modifier and Type | Method and Description |
---|---|
static void |
bind(ServiceBinder binder) |
static MongoDB |
buildMongoDB(org.slf4j.Logger logger,
MongoDBSource mongoDBSource,
PerthreadManager perthreadManager,
String defaultDbName,
boolean consistentRequest,
boolean secureMode,
String dbUsername,
String dbPassword) |
static void |
contributeFactoryDefaults(MappedConfiguration<String,String> configuration) |
static void |
contributeTypeCoercer(Configuration<CoercionTuple> configuration)
|
public MongodbModule()
public static void bind(ServiceBinder binder)
public static void contributeFactoryDefaults(MappedConfiguration<String,String> configuration)
@Scope(value="perthread") public static MongoDB buildMongoDB(org.slf4j.Logger logger, MongoDBSource mongoDBSource, PerthreadManager perthreadManager, @Symbol(value="tapestry.mongodb.default_db_name") String defaultDbName, @Symbol(value="tapestry.mongodb.consistent_request") boolean consistentRequest, @Symbol(value="tapestry.mongodb.secure_mode") boolean secureMode, @Symbol(value="tapestry.mongodb.db_username") String dbUsername, @Symbol(value="tapestry.mongodb.db_password") String dbPassword)
public static void contributeTypeCoercer(Configuration<CoercionTuple> configuration)
configuration
- lets help the TypeCoercer
service${project.version} - Copyright © 2003-2015 The Apache Software Foundation.