Package com.twitter.common.application.modules

Examples of com.twitter.common.application.modules.HttpModule


    Injector injector = Guice.createInjector(
        new ServletModule(),
        new LogModule(),
        new StatsModule(),
        new HttpModule(),
        new LifecycleModule(),
        new AbstractModule() {
          <T> T bindMock(Class<T> clazz) {
            T mock = createMock(clazz);
            bind(clazz).toInstance(mock);
View Full Code Here


      ClientConfig zkClientConfig,
      String statsURLPrefix) {

    return ImmutableList.<Module>builder()
        .add(new LogModule())
        .add(new HttpModule())
        .add(new StatsModule())
        .add(new AppModule(clusterName, serverSetPath, zkClientConfig, statsURLPrefix))
        .addAll(getExtraModules())
        .add(new LogStorageModule())
        .add(new MemStorageModule(Bindings.annotatedKeyFactory(LogStorage.WriteBehind.class)))
View Full Code Here

  }

  @Override
  public Iterable<? extends Module> getModules() {
    return Arrays.asList(
        new HttpModule(),
        new LogModule(),
        new RestModule(),
        new StatsModule()
    );
  }
View Full Code Here

  }

  @Override
  public Iterable<? extends Module> getModules() {
    return Arrays.asList(
        new HttpModule(),
        new LogModule(),
        new StatsModule(),
        new HdfsDuModule());
  }
View Full Code Here

TOP

Related Classes of com.twitter.common.application.modules.HttpModule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.