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

com.google.sitebricks.SitebricksNettySupportModule Maven / Gradle / Ivy

package com.google.sitebricks;

import com.google.inject.AbstractModule;
import com.google.inject.servlet.RequestScoped;
import com.google.inject.util.Providers;
import com.google.sitebricks.headless.Request;
import org.jboss.netty.handler.codec.http.HttpRequest;

/**
 * @author [email protected] (Dhanji R. Prasanna)
 */
class SitebricksNettySupportModule extends AbstractModule {
  @Override
  protected void configure() {
    bind(HttpRequest.class).toProvider(Providers.of(null)).in(RequestScoped.class);
    bind(Request.class).toProvider(NettyRequestProvider.class).in(RequestScoped.class);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy