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

com.sorskod.webserver.connectors.AbstractConnectorModule Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package com.sorskod.webserver.connectors;

import com.google.inject.AbstractModule;
import com.google.inject.multibindings.Multibinder;

/**
 * @author Aleksandar Babic
 */
public abstract class AbstractConnectorModule extends AbstractModule {

  @Override
  protected void configure() {
    Multibinder connectorBinder = Multibinder.newSetBinder(binder(), ConnectorFactory.class);
    connectorBinder.addBinding().to(getConnectorFactoryClass());
  }

  protected abstract Class getConnectorFactoryClass();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy