Package io.trino.plugin.mongodb
Class MongoClientModule
- java.lang.Object
-
- io.trino.plugin.mongodb.MongoClientModule
-
- All Implemented Interfaces:
com.google.inject.Module
public class MongoClientModule extends Object implements com.google.inject.Module
-
-
Constructor Summary
Constructors Constructor Description MongoClientModule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(com.google.inject.Binder binder)static MongoSessioncreateMongoSession(TypeManager typeManager, MongoClientConfig config)
-
-
-
Method Detail
-
configure
public void configure(com.google.inject.Binder binder)
- Specified by:
configurein interfacecom.google.inject.Module
-
createMongoSession
@Singleton @Provides public static MongoSession createMongoSession(TypeManager typeManager, MongoClientConfig config)
-
-