for (ComponentModel component : getConfig().getComposite().getComponents()) {
// TODO: we need a separate node for components, to support cases
// where the component implements no services. Should also consider
// multiple services per component.
if (component.getServices().size() > 0) {
ComponentServiceModel service = component.getServices().get(0);
if (service.getInterface() == null || EsbInterfaceModel.ESB.equals(service.getInterface().getType())) {
_componentServices.put(service.getQName(), new BaseNoopComponentService(service, component, this));
} else if (InterfaceModel.JAVA.equals(service.getInterface().getType())) {
_componentServices.put(service.getQName(), new BaseJavaComponentService(service, component, this));
} else if (InterfaceModel.WSDL.equals(service.getInterface().getType())) {
_componentServices.put(service.getQName(), new BaseWsdlComponentService(service, component, this));
}
}
}
}