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