All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.touk.nussknacker.engine.modelconfig.DefaultModelConfigLoader.scala Maven / Gradle / Ivy

The newest version!
package pl.touk.nussknacker.engine.modelconfig

import com.typesafe.config.Config
import pl.touk.nussknacker.engine.api.component.ComponentProvider
import pl.touk.nussknacker.engine.definition.component.ComponentsFromProvidersExtractor

class DefaultModelConfigLoader(shouldIncludeComponentProvider: ComponentProvider => Boolean) extends ModelConfigLoader {

  override protected def resolveInputConfigDuringExecution(
      inputConfig: Config,
      configWithDefaults: Config,
      classLoader: ClassLoader
  ): InputConfigDuringExecution = {
    val loaded = ComponentsFromProvidersExtractor(classLoader, shouldIncludeComponentProvider)
      .loadAdditionalConfig(inputConfig, configWithDefaults)
    InputConfigDuringExecution(loaded)
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy