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

it.netgrid.got.telegram.Main Maven / Gradle / Ivy

There is a newer version: 0.0.3
Show newest version
package it.netgrid.got.telegram;


import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import com.google.inject.Guice;
import com.google.inject.Injector;

import it.netgrid.got.telegram.inject.TelegramConnectorModule;

public class Main {
	static final int POOL_SIZE=1;
	public static void main(String[] args) {
		ExecutorService executor=Executors.newFixedThreadPool(POOL_SIZE);
		Injector injector = Guice.createInjector(new TelegramConnectorModule());
		TelegramConnector connector = (injector.getInstance(TelegramConnector.class));
		executor.execute(connector);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy