// Create the injector
Injector injector = LifecycleInjector.builder()
.withModules(modules)
.createInjector();
EurekaAstyanaxHostSupplier supplier = injector.getInstance(EurekaAstyanaxHostSupplier.class);
// EurekaAstyanaxHostSupplier supplier = new EurekaAstyanaxHostSupplier();
Supplier<List<Host>> list1 = supplier.getSupplier("c_sandbox");
List<Host> hosts = list1.get();
LOG.info("cass_sandbox");
for (Host host:hosts) {
LOG.info(host.getHostName());
}
// Supplier<List<Host>> list2 = supplier.getSupplier("ABCLOUD");
// hosts = list2.get();
// LOG.info("ABCLOUD");
// for (Host host:hosts) {
// LOG.info(host.getHostName());
// }
Supplier<List<Host>> list3 = supplier.getSupplier("C_PAAS");
hosts = list3.get();
LOG.info("c_paas");
for (Host host:hosts) {
LOG.info(host.getHostName());
}