@Override public void setConfiguredProperties(final Map<ConfiguredPropertyDescriptor, Object> configuredProperties) { boolean changed = false; for (final Map.Entry<ConfiguredPropertyDescriptor, Object> entry : configuredProperties.entrySet()) { changed = setConfiguredPropertyIfChanged(entry.getKey(), entry.getValue()) || changed; } if (changed) { onConfigurationChanged(); } }
@Override public void onConfigurationChanged() { super.onConfigurationChanged(); final List<FilterChangeListener> listeners = getAllListeners(); for (final FilterChangeListener listener : listeners) { listener.onConfigurationChanged(this); } }
@Override public void onConfigurationChanged() { super.onConfigurationChanged(); final List<AnalyzerChangeListener> listeners = getAllListeners(); for (final AnalyzerChangeListener listener : listeners) { listener.onConfigurationChanged(this); } }
@Override public B setConfiguredProperty(final ConfiguredPropertyDescriptor configuredProperty, final Object value) { final boolean changed = setConfiguredPropertyIfChanged(configuredProperty, value); if (changed) { if (configuredProperty.isInputColumn()) { registerListenerIfLinkedToTransformer(configuredProperty, value); } onConfigurationChanged(); } return (B) this; }
@Override public void onConfigurationChanged() { super.onConfigurationChanged(); // trigger getOutputColumns which will notify consumers in the case of // output changes if (isConfigured()) { getOutputColumns(); } final List<TransformerChangeListener> listeners = getAllListeners(); for (final TransformerChangeListener listener : listeners) { listener.onConfigurationChanged(this); } }
@Override public void setConfiguredProperties(final ComponentConfiguration configuration) { boolean changed = false; final Set<ConfiguredPropertyDescriptor> properties = getDescriptor().getConfiguredProperties(); for (final ConfiguredPropertyDescriptor property : properties) { final Object value = configuration.getProperty(property); final boolean changedValue = setConfiguredPropertyIfChanged(property, value); if (changedValue) { changed = true; } } if (changed) { onConfigurationChanged(); } }