com.sorskod.webserver.connectors.AbstractConnectorModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webserver Show documentation
Show all versions of webserver Show documentation
Guice WebServer Module - backed by latest Jetty, Jersey and Jackson.
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 extends ConnectorFactory> getConnectorFactoryClass();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy