use of org.knime.core.webui.data.DataService in project knime-core by knime.
the class DataServiceManager method getDataService.
private Optional<DataService> getDataService(final NodeContainer nc) {
DataService ds;
if (!m_dataServices.containsKey(nc)) {
ds = getDataServiceProvider(nc).createDataService().orElse(null);
m_dataServices.put(nc, ds);
} else {
ds = m_dataServices.get(nc);
}
return Optional.ofNullable(ds);
}
Aggregations