Class InventoryExternalProviderAutoConfiguration
java.lang.Object
com.broadleafcommerce.inventory.service.provider.InventoryExternalProviderAutoConfiguration
@Configuration
@EnableConfigurationProperties(SSLVerificationProperties.class)
public class InventoryExternalProviderAutoConfiguration
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexternalCartProvider
(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.springframework.core.env.Environment env) Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction>
inventoryOperationsOauth2FilterFunctionSupplier
(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrations, SSLVerificationProperties sslVerificationProperties) We'll leave this with a general name as it can (and should) be reused in a flex package.org.springframework.web.reactive.function.client.WebClient
inventoryWebClient
(Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> oauth2FilterSupplier, com.fasterxml.jackson.databind.ObjectMapper objectMapper, SSLVerificationProperties sslVerificationProperties)
-
Constructor Details
-
InventoryExternalProviderAutoConfiguration
public InventoryExternalProviderAutoConfiguration()
-
-
Method Details
-
externalCartProvider
@Bean @ConditionalOnMissingBean public CartProvider externalCartProvider(@Qualifier("inventoryWebClient") org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.springframework.core.env.Environment env) -
inventoryOperationsOauth2FilterFunctionSupplier
@Bean(name="oAuth2FilterFunctionSupplier") @ConditionalOnMissingBean(name="oAuth2FilterFunctionSupplier") public Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> inventoryOperationsOauth2FilterFunctionSupplier(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrations, SSLVerificationProperties sslVerificationProperties) We'll leave this with a general name as it can (and should) be reused in a flex package. TODO: possibly move this to a broadleaf oauth2 client dependency https://github.com/BroadleafCommerce/MicroPM/issues/1924- Parameters:
clientRegistrations
-sslVerificationProperties
-- Returns:
-
inventoryWebClient
@Bean @ConditionalOnMissingBean(name="inventoryWebClient") public org.springframework.web.reactive.function.client.WebClient inventoryWebClient(@Qualifier("oAuth2FilterFunctionSupplier") Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> oauth2FilterSupplier, com.fasterxml.jackson.databind.ObjectMapper objectMapper, SSLVerificationProperties sslVerificationProperties) throws SSLException - Throws:
SSLException
-