Class ApiVersionWebFluxAutoConfiguration
java.lang.Object
org.springframework.cloud.servicebroker.autoconfigure.web.reactive.ApiVersionWebFluxAutoConfiguration
@Configuration
@ConditionalOnWebApplication(type=REACTIVE)
@ConditionalOnBean(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 Summary
ConstructorDescriptionApiVersionWebFluxAutoConfiguration
(ServiceBrokerProperties serviceBrokerProperties) Construct a newApiVersionWebFluxAutoConfiguration
. -
Method Summary
Modifier and TypeMethodDescriptionapiVersionWebFilter
(BrokerApiVersion brokerApiVersion) Conditionally provides aApiVersionWebFilter
bean.Conditionally provides aBrokerApiVersion
bean.Provides aBrokerApiVersion
bean if the 'api-version' property is available in external configuration.
-
Constructor Details
-
ApiVersionWebFluxAutoConfiguration
Construct a newApiVersionWebFluxAutoConfiguration
.- Parameters:
serviceBrokerProperties
- the service broker properties
-
-
Method Details
-
serviceBrokerApiVersionProperty
@Bean @ConditionalOnMissingBean(BrokerApiVersion.class) @ConditionalOnProperty(prefix="spring.cloud.openservicebroker", name="api-version") public BrokerApiVersion serviceBrokerApiVersionProperty()Provides aBrokerApiVersion
bean if the 'api-version' property is available in external configuration.- Returns:
- the bean
-
serviceBrokerApiVersion
@Bean @ConditionalOnMissingBean(BrokerApiVersion.class) public BrokerApiVersion serviceBrokerApiVersion()Conditionally provides aBrokerApiVersion
bean.- Returns:
- the bean
-
apiVersionWebFilter
Conditionally provides aApiVersionWebFilter
bean.- Parameters:
brokerApiVersion
- the api version- Returns:
- the bean
-