@@ -48,7 +48,7 @@ class DefaultNodeModule implements NodeModule {
48
48
49
49
private final Map <ModuleItem <?>, DataType > outputMapping ;
50
50
51
- private final NodeModuleOutputChangedListener outputListener ;
51
+ private NodeModuleOutputChangedListener outputListener ;
52
52
53
53
private final LogService logService ;
54
54
@@ -78,7 +78,7 @@ public DefaultNodeModule(final Context context, final ModuleInfo info,
78
78
this .inputMapping = inputMapping ;
79
79
this .outputMapping = outputMapping ;
80
80
this .module = ms .createModule (info );
81
- this .outputListener = new NodeModuleOutputChangedListener ();
81
+ this .outputListener = new NodeModuleOutputChangedListener (false );
82
82
this .logService = new KNIMELogService (logger );
83
83
84
84
preProcess (params );
@@ -109,9 +109,9 @@ private void preProcess(final Map<String, Object> params) {
109
109
/* MultiOutputListener */
110
110
final String name = item .getName ();
111
111
112
+ outputListener = new NodeModuleOutputChangedListener (true );
112
113
module .setInput (name , outputListener );
113
114
module .resolveInput (name );
114
- outputListener .enableManualPush (true );
115
115
} else if (LogService .class .equals (item .getType ())) {
116
116
/* LogService */
117
117
final String name = item .getName ();
@@ -158,7 +158,18 @@ private class NodeModuleOutputChangedListener
158
158
private CellOutput output ;
159
159
160
160
/* true if the modules handles pushes itself, false otherwise */
161
- private boolean manualPush = false ;
161
+ private final boolean manualPush = false ;
162
+
163
+ /**
164
+ * Constructor.
165
+ *
166
+ * @param manualPush
167
+ * if <code>true</code>, signals that the module handles
168
+ * pushing rows.
169
+ */
170
+ NodeModuleOutputChangedListener (final boolean manualPush ) {
171
+ this .manualPush = manualPush ;
172
+ }
162
173
163
174
@ Override
164
175
public void notifyListener () {
@@ -213,16 +224,5 @@ public void flush() {
213
224
notifyListener ();
214
225
}
215
226
}
216
-
217
- /**
218
- * Enable/Disable manual push.
219
- *
220
- * @param b
221
- * if <code>true</code>, signals that the module handles
222
- * pushing rows.
223
- */
224
- public void enableManualPush (final boolean b ) {
225
- manualPush = b ;
226
- }
227
227
}
228
228
}
0 commit comments