if (inputPort.eventTypes().length != 0) { final Class<?>[] outEventTypes; if (outputPort.eventTypes().length == 0) { for (final Class<?> dstEventType : inputPort.eventTypes()) { if (dstEventType.isInterface() || srcEventType.isInterface() || dstEventType.isAssignableFrom(srcEventType) || srcEventType.isAssignableFrom(dstEventType)) { final String allowedInputTypes = Arrays.toString(inputPort.eventTypes()); LOGGER.warn("Output port '{}' ({}) is not compatible with input port '{}' ({}).", output, allowedOutputTypes, input, allowedInputTypes); return false;
if (inputPort.eventTypes().length != 0) { final Class<?>[] outEventTypes; if (outputPort.eventTypes().length == 0) { for (final Class<?> dstEventType : inputPort.eventTypes()) { if (dstEventType.isInterface() || srcEventType.isInterface() || dstEventType.isAssignableFrom(srcEventType) || srcEventType.isAssignableFrom(dstEventType)) { final String allowedInputTypes = Arrays.toString(inputPort.eventTypes()); LOG.warn("Output port '" + output + "' (" + allowedOutputTypes + ") is not compatible with input port '" + input + "' (" + allowedInputTypes + ").");
this.logger.error("The input port {} has to provide exactly one parameter of the correct type.", inputPort.name()); } else { Class<?>[] eventTypes = inputPort.eventTypes(); if (eventTypes.length == 0) { // NOPMD (nested if) eventTypes = new Class<?>[] { Object.class };
src.registeredMethods.get(outputPortName).add(new PluginInputPortReference(dst, inputPortName, m, dst.inputPorts.get(inputPortName).eventTypes())); src.outgoingPlugins.add(dst); dst.incomingPlugins.add(src);
src.registeredMethods.get(outputPortName).add(new PluginInputPortReference(dst, inputPortName, m, dst.inputPorts.get(inputPortName).eventTypes())); src.outgoingPlugins.add(dst); dst.incomingPlugins.add(src);
this.log.error("The input port " + inputPort.name() + " has to provide exactly one parameter of the correct type."); } else { Class<?>[] eventTypes = inputPort.eventTypes(); if (eventTypes.length == 0) { // NOPMD (nested if) eventTypes = new Class<?>[] { Object.class };