All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.edurt.datacap.plugin.mongo.MongoModule.kt Maven / Gradle / Ivy

There is a newer version: 2024.3.11
Show newest version
package io.edurt.datacap.plugin.mongo

import com.google.inject.multibindings.Multibinder
import io.edurt.datacap.spi.AbstractPluginModule
import io.edurt.datacap.spi.Plugin
import io.edurt.datacap.spi.PluginModule
import io.edurt.datacap.spi.PluginType

class MongoModule : AbstractPluginModule(), PluginModule {

    override fun getName(): String {
        return "MongoDB Community"
    }

    override fun getType(): PluginType {
        return PluginType.JDBC
    }

    override fun get(): AbstractPluginModule {
        return this
    }

    override fun configure() {
        Multibinder.newSetBinder(binder(), Plugin::class.java)
            .addBinding()
            .to(MongoPlugin::class.java)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy