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

io.holunda.camunda.taskpool.urlresolver.PropertyBasedFormUrlResolverConfiguration.kt Maven / Gradle / Ivy

There is a newer version: 2.1.8
Show newest version
package io.holunda.camunda.taskpool.urlresolver

import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import io.holunda.camunda.taskpool.view.FormUrlResolver
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

/**
 * Configuration for property-based form url resolver component.
 */
@Configuration
@EnableConfigurationProperties(FormUrlResolverProperties::class)
class PropertyBasedFormUrlResolverConfiguration {

  /**
   * Constructs a resolver based on configuration properties.
   */
  @Bean
  @ConditionalOnMissingBean(FormUrlResolver::class)
  fun taskUrlResolver(props: FormUrlResolverProperties) = PropertyBasedFormUrlResolver(props, jacksonObjectMapper())
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy