Class ApiVersionWebFluxAutoConfiguration

java.lang.Object
org.springframework.cloud.servicebroker.autoconfigure.web.reactive.ApiVersionWebFluxAutoConfiguration

@Configuration @ConditionalOnWebApplication(type=REACTIVE) @ConditionalOnBean(org.springframework.cloud.servicebroker.service.ServiceInstanceService.class) @ConditionalOnProperty(prefix="spring.cloud.openservicebroker", name="api-version-check-enabled", havingValue="true", matchIfMissing=true) @AutoConfigureAfter(org.springframework.boot.autoconfigure.web.reactive.WebFluxAutoConfiguration.class) @EnableConfigurationProperties(ServiceBrokerProperties.class) public class ApiVersionWebFluxAutoConfiguration extends Object
Auto-configuration for the service broker API validation. Configures support for any service broker API version if a version is not specifically configured.

API validation may be disabled completely by setting the following configuration property:

 spring.cloud.openservicebroker.api-version-check-enabled = false
 
Author:
Roy Clarkson
  • Constructor Details

  • Method Details

    • serviceBrokerApiVersionProperty

      @Bean @ConditionalOnMissingBean(org.springframework.cloud.servicebroker.model.BrokerApiVersion.class) @ConditionalOnProperty(prefix="spring.cloud.openservicebroker", name="api-version") public org.springframework.cloud.servicebroker.model.BrokerApiVersion serviceBrokerApiVersionProperty()
      Provides a BrokerApiVersion bean if the 'api-version' property is available in external configuration
      Returns:
      the bean
    • serviceBrokerApiVersion

      @Bean @ConditionalOnMissingBean(org.springframework.cloud.servicebroker.model.BrokerApiVersion.class) public org.springframework.cloud.servicebroker.model.BrokerApiVersion serviceBrokerApiVersion()
      Conditionally provides a BrokerApiVersion bean
      Returns:
      the bean
    • apiVersionWebFilter

      @Bean public ApiVersionWebFilter apiVersionWebFilter(org.springframework.cloud.servicebroker.model.BrokerApiVersion brokerApiVersion)
      Conditionally provides a ApiVersionWebFilter bean
      Parameters:
      brokerApiVersion - the api version
      Returns:
      the bean