/** * {@inheritDoc} */ @Override public final String[] getAllOutputPortNames() { final List<String> outputNames = new LinkedList<String>(); final Plugin annotation = this.getClass().getAnnotation(Plugin.class); for (final OutputPort outputPort : annotation.outputPorts()) { outputNames.add(outputPort.name()); } return outputNames.toArray(new String[outputNames.size()]); }
/** * {@inheritDoc} */ @Override public final String[] getAllOutputPortNames() { final List<String> outputNames = new LinkedList<>(); final Plugin annotation = this.getClass().getAnnotation(Plugin.class); for (final OutputPort outputPort : annotation.outputPorts()) { outputNames.add(outputPort.name()); } return outputNames.toArray(new String[outputNames.size()]); }
private static boolean containsOutputPorts(final Class<?> clazz) { final Plugin annotation = clazz.getAnnotation(Plugin.class); return annotation.outputPorts().length != 0; }
for (final OutputPort outputPort : annotation.outputPorts()) { if (this.outputPorts.put(outputPort.name(), outputPort) != null) { this.logger.error("Two OutputPorts use the same name: {}", outputPort.name()); for (final OutputPort outputPort : annotation.outputPorts()) { this.logger.warn("Invalid port for visualization filter detected. Port is ignored: {}", outputPort.name()); for (final OutputPort outputPort : annotation.outputPorts()) { this.registeredMethods.put(outputPort.name(), new ArrayList<PluginInputPortReference>(1));
for (final OutputPort outputPort : annotation.outputPorts()) { if (this.outputPorts.put(outputPort.name(), outputPort) != null) { this.log.error("Two OutputPorts use the same name: " + outputPort.name()); for (final OutputPort outputPort : annotation.outputPorts()) { this.log.warn("Invalid port for visualization filter detected. Port is ignored: " + outputPort.name()); for (final OutputPort outputPort : annotation.outputPorts()) { this.registeredMethods.put(outputPort.name(), new ArrayList<PluginInputPortReference>(1));