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

com.englishtown.vertx.cassandra.guice.GuiceZooKeeperCassandraBinder Maven / Gradle / Ivy

There is a newer version: 3.6.1
Show newest version
package com.englishtown.vertx.cassandra.guice;

import com.englishtown.vertx.cassandra.CassandraConfigurator;
import com.englishtown.vertx.cassandra.zookeeper.ZooKeeperCassandraConfigurator;
import com.google.inject.AbstractModule;

import javax.inject.Singleton;

/**
 * Guice binder for zookeeper cassandra configuration
 */
public class GuiceZooKeeperCassandraBinder extends AbstractModule {
    /**
     * Implement to provide binding definitions using the exposed binding
     * methods.
     */
    @Override
    protected void configure() {

        // Install main bindings
        install(new GuiceCassandraBinder());

        // zookeeper bindings
        bind(CassandraConfigurator.class).to(ZooKeeperCassandraConfigurator.class).in(Singleton.class);

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy