// Path: grpc-mate-java/elasticsearch-service/src/main/java/io/datanerd/es/guice/ElasticSearchModule.java
// public class ElasticSearchModule extends AbstractModule {
// 
//   @Override
//   protected void configure() {
//     bind(Configuration.class).toProvider(ConfigurationProvider.class).in(Singleton.class);
//     bind(TransportClient.class).toProvider(TransportClientProvider.class).in(Singleton.class);
//     bind(JsonFormat.Printer.class).toInstance(JsonFormat.printer());
//     bind(JsonFormat.Parser.class).toInstance(JsonFormat.parser());
//   }
// }


import com.google.inject.Guice;
import com.google.inject.Injector;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import io.datanerd.es.guice.ElasticSearchModule;
package io.datanerd.es.server;




public class ServiceLauncher {

  private static final Logger log = LoggerFactory.getLogger(ServiceLauncher.class);

  /**
   * Start the micro service.
   */
  public static void main(final String[] args) {
    try {
      final Injector injector =
// Path: grpc-mate-java/elasticsearch-service/src/main/java/io/datanerd/es/guice/ElasticSearchModule.java
// public class ElasticSearchModule extends AbstractModule {
// 
//   @Override
//   protected void configure() {
//     bind(Configuration.class).toProvider(ConfigurationProvider.class).in(Singleton.class);
//     bind(TransportClient.class).toProvider(TransportClientProvider.class).in(Singleton.class);
//     bind(JsonFormat.Printer.class).toInstance(JsonFormat.printer());
//     bind(JsonFormat.Parser.class).toInstance(JsonFormat.parser());
//   }
// }


// Path: grpc-mate-java/elasticsearch-service/src/main/java/io/datanerd/es/server/ServiceLauncher.java
import com.google.inject.Guice;
import com.google.inject.Injector;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import io.datanerd.es.guice.ElasticSearchModule;

package io.datanerd.es.server;




public class ServiceLauncher {

  private static final Logger log = LoggerFactory.getLogger(ServiceLauncher.class);

  /**
   * Start the micro service.
   */
  public static void main(final String[] args) {
    try {
      final Injector injector =
          Guice.createInjector(new ElasticSearchModule());