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

com.englishtown.vertx.zookeeper.hk2.HK2WhenZooKeeperBinder Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package com.englishtown.vertx.zookeeper.hk2;

import com.englishtown.vertx.zookeeper.promises.WhenConfiguratorHelper;
import com.englishtown.vertx.zookeeper.promises.WhenZooKeeperClient;
import com.englishtown.vertx.zookeeper.promises.impl.DefaultWhenConfiguratorHelper;
import com.englishtown.vertx.zookeeper.promises.impl.DefaultWhenZooKeeperClient;
import org.glassfish.hk2.utilities.binding.AbstractBinder;

import javax.inject.Singleton;

/**
 * when.java HK2 bindings
 */
public class HK2WhenZooKeeperBinder extends AbstractBinder {

    @Override
    protected void configure() {
        // Install the main zookeeper binder
        install(new HK2ZooKeeperBinder());

        // Promise bindings
        bind(DefaultWhenConfiguratorHelper.class).to(WhenConfiguratorHelper.class).in(Singleton.class);
        bind(DefaultWhenZooKeeperClient.class).to(WhenZooKeeperClient.class).in(Singleton.class);

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy