+ "' required by system '"
+ aComponent
+ "' matches multiple services provided by other systems: "
- + Arrays.asList(filtered));
+ + getServers(filtered));
} else {
// filtered.length == 0
if ( !descriptor.isOptional()) {
private void warn(String aMsg) {
LOG.warn(getQualifiedName() + ": " + aMsg);
}
+
+ private String getServers(ProvidedInterface[] aProvidedList ) {
+ String result = "";
+ for (ProvidedInterface provided: aProvidedList) {
+ result += "(components ";
+ for (Component component: _components) {
+ for (ProvidedInterface provided2: component.getProvidedInterfaces()) {
+ if ( provided.equals(provided2)) {
+ result += component + " ";
+ }
+ }
+ }
+ result += ", interface " + provided + ")";
+ }
+ return result;
+ }
private List<Component> getClients(RequiredInterface aRequirement) {
List<Component> clients = new ArrayList<Component>();