Class CustomerServiceAutoConfiguration.Providers
- java.lang.Object
-
- com.broadleafcommerce.customer.service.autoconfigure.CustomerServiceAutoConfiguration.Providers
-
- Enclosing class:
- CustomerServiceAutoConfiguration
@Configuration @EnableConfigurationProperties({SSLVerificationProperties.class,ExternalPaymentProperties.class}) public static class CustomerServiceAutoConfiguration.Providers extends Object
-
-
Constructor Summary
Constructors Constructor Description Providers()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction>
customerOauth2FilterFunctionSupplier(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.PaymentProvider<Payment>
customerPaymentProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalPaymentProperties properties)
org.springframework.web.reactive.function.client.WebClient
customerWebClient(Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> oauth2FilterSupplier, com.fasterxml.jackson.databind.ObjectMapper objectMapper, SSLVerificationProperties sslVerificationProperties)
-
-
-
Method Detail
-
customerWebClient
@Bean @ConditionalOnMissingBean(name="customerWebClient") public org.springframework.web.reactive.function.client.WebClient customerWebClient(@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
-
customerOauth2FilterFunctionSupplier
@Bean(name="oAuth2FilterFunctionSupplier") @ConditionalOnMissingBean(name="oAuth2FilterFunctionSupplier") public Supplier<org.springframework.security.oauth2.client.web.reactive.function.client.ServletOAuth2AuthorizedClientExchangeFilterFunction> customerOauth2FilterFunctionSupplier(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.- Parameters:
clientRegistrations
-sslVerificationProperties
-- Returns:
-
customerPaymentProvider
@Bean @ConditionalOnMissingBean public PaymentProvider<Payment> customerPaymentProvider(@Qualifier("customerWebClient") org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalPaymentProperties properties)
-
-