protected void registerConnectors(ComponentRepository repo, GenericApplicationContext appContext) {
Set<Class<? extends Connector>> types = Sets.newHashSet();
String[] beanNames = appContext.getBeanNamesForType(Connector.class);
for (String beanName : beanNames) {
Connector bean = appContext.getBean(beanName, Connector.class);
types.add(bean.getType());
}
for (Class<? extends Connector> type : types) {
registerInfrastructureByType(repo, type, appContext);
}
}