pl.touk.nussknacker.engine.api.component.DefaultAdditionalUIConfigProvider.scala Maven / Gradle / Ivy
package pl.touk.nussknacker.engine.api.component
class DefaultAdditionalUIConfigProvider(
processingTypeToConfig: Map[String, Map[DesignerWideComponentId, ComponentAdditionalConfig]],
processingTypeToAdditionalPropertiesConfig: Map[String, Map[String, ScenarioPropertyConfig]],
) extends AdditionalUIConfigProvider {
override def getAllForProcessingType(
processingType: String
): Map[DesignerWideComponentId, ComponentAdditionalConfig] =
processingTypeToConfig.getOrElse(processingType, Map.empty)
override def getScenarioPropertiesUIConfigs(processingType: String): Map[String, ScenarioPropertyConfig] =
processingTypeToAdditionalPropertiesConfig.getOrElse(processingType, Map.empty)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy