Class CrowdConfiguration
- java.lang.Object
-
- pl.allegro.tech.hermes.management.config.CrowdConfiguration
-
@Configuration @EnableConfigurationProperties(CrowdProperties.class) @ConditionalOnProperty("owner.crowd.enabled") public class CrowdConfiguration extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CrowdConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.client.ClientHttpRequestFactoryclientHttpRequestFactory()CrowdOwnerSourcecrowdOwnerSource(CrowdProperties crowdProperties, org.springframework.web.client.RestTemplate restTemplate)org.springframework.web.client.RestTemplaterestTemplate(CrowdProperties properties)
-
-
-
Method Detail
-
clientHttpRequestFactory
@Bean("managementRequestFactory") @ConfigurationProperties(prefix="management.rest-template") public org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory()
-
restTemplate
@Bean(name="crowdRestTemplate") public org.springframework.web.client.RestTemplate restTemplate(CrowdProperties properties)
-
crowdOwnerSource
@Bean @Order(1) public CrowdOwnerSource crowdOwnerSource(CrowdProperties crowdProperties, @Qualifier("crowdRestTemplate") org.springframework.web.client.RestTemplate restTemplate)
-
-