Search in sources :

Example 1 with InitialDataService

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);
}
Also used : InitialDataService(org.knime.core.webui.data.InitialDataService) TextInitialDataService(org.knime.core.webui.data.text.TextInitialDataService)

Aggregations

InitialDataService (org.knime.core.webui.data.InitialDataService)1 TextInitialDataService (org.knime.core.webui.data.text.TextInitialDataService)1