injector.getInstance(Key.get(new TypeLiteral<ThriftClient<ExampleService>>() {}));
String stringToProcess =
injector.getInstance(Key.get(String.class, Names.named("stringToProcess")));
new ClientExampleHelper(clientFactory, stringToProcess).execute();
injector.destroy();
}
private static void collectCounters() throws ExecutionException, InterruptedException
{
try (ThriftClientManager clientManager = new ThriftClientManager();