/** * {@inheritDoc} */ @Override public final String[] getAllInputPortNames() { final List<String> inputNames = new LinkedList<String>(); for (final Method method : this.getClass().getMethods()) { final InputPort inputPort = method.getAnnotation(InputPort.class); if ((inputPort != null) && (method.getParameterTypes().length == 1)) { inputNames.add(inputPort.name()); } } return inputNames.toArray(new String[inputNames.size()]); }
/** * {@inheritDoc} */ @Override public final String[] getAllInputPortNames() { final List<String> inputNames = new LinkedList<>(); for (final Method method : this.getClass().getMethods()) { final InputPort inputPort = method.getAnnotation(InputPort.class); if ((inputPort != null) && (method.getParameterTypes().length == 1)) { inputNames.add(inputPort.name()); } } return inputNames.toArray(new String[inputNames.size()]); }
for (final Method method : this.getClass().getMethods()) { final InputPort inputPort = method.getAnnotation(InputPort.class); if ((inputPort != null) && (this.inputPorts.put(inputPort.name(), inputPort) != null)) { this.logger.error("Two InputPorts use the same name: {}", inputPort.name()); this.logger.error("The input port {} has to provide exactly one parameter of the correct type.", inputPort.name()); } else { Class<?>[] eventTypes = inputPort.eventTypes(); if (!parameters[0].isAssignableFrom(event)) { // NOPMD (nested if) this.logger.error("The event type {} of the input port {} is not accepted by the parameter of type ", event.getName(), inputPort.name(), parameters[0].getName()); final InputPort inputPort = method.getAnnotation(InputPort.class); if (inputPort != null) { this.logger.warn("Invalid port for reader detected. Port is ignored: {}", inputPort.name());
for (final Method method : this.getClass().getMethods()) { final InputPort inputPort = method.getAnnotation(InputPort.class); if ((inputPort != null) && (this.inputPorts.put(inputPort.name(), inputPort) != null)) { this.log.error("Two InputPorts use the same name: " + inputPort.name()); this.log.error("The input port " + inputPort.name() + " has to provide exactly one parameter of the correct type."); } else { Class<?>[] eventTypes = inputPort.eventTypes(); this.log.error("The event type " + event.getName() + " of the input port " + inputPort.name() + " is not accepted by the parameter of type " + parameters[0].getName()); final InputPort inputPort = method.getAnnotation(InputPort.class); if (inputPort != null) { this.log.warn("Invalid port for reader detected. Port is ignored: " + inputPort.name());
if ((ip != null) && (m.getParameterTypes().length == 1) && ip.name().equals(inputPortName)) { src.outputPorts.get(outputPortName).eventTypes(); java.security.AccessController.doPrivileged(new PrivilegedAction<Object>() {
if ((ip != null) && (m.getParameterTypes().length == 1) && ip.name().equals(inputPortName)) { src.outputPorts.get(outputPortName).eventTypes(); java.security.AccessController.doPrivileged(new PrivilegedAction<Object>() {