Package org.hglteam.config.remote
Class RemoteConfiguration
- java.lang.Object
-
- org.hglteam.config.remote.RemoteConfiguration
-
@Configuration public class RemoteConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description RemoteConfiguration()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RemoteConfigObjectFactoryremoteConfigObjectFactory()static RemoteConfigRestClientremoteConfigRestClient(RemoteConfigRestServiceProperties properties, org.springframework.web.client.RestTemplate restTemplate, RemoteConfigObjectFactory remoteConfigObjectFactory)static RemoteConfigRestServicePropertiesremoteConfigRestServiceProperties(org.springframework.core.env.Environment environment)static org.springframework.context.support.PropertySourcesPlaceholderConfigurerremotePropertySource(org.springframework.context.ConfigurableApplicationContext configurableContext, RemoteConfigServiceClient client)static org.springframework.web.client.RestTemplaterestTemplate(RemoteConfigServiceProperties properties)
-
-
-
Method Detail
-
remoteConfigRestServiceProperties
@Bean @Conditional(NoRemoteConfigServicePropertiesDefined.class) public static RemoteConfigRestServiceProperties remoteConfigRestServiceProperties(org.springframework.core.env.Environment environment)
-
restTemplate
@Bean("remoteConfigRestTemplate") @Conditional(NoRemoteConfigRestTemplateDefined.class) public static org.springframework.web.client.RestTemplate restTemplate(RemoteConfigServiceProperties properties)
-
remoteConfigObjectFactory
@Bean @Conditional(NoRemoteConfigObjectFactoryDefined.class) public static RemoteConfigObjectFactory remoteConfigObjectFactory()
-
remoteConfigRestClient
@Bean @Conditional(NoRemoteConfigServiceClientDefined.class) public static RemoteConfigRestClient remoteConfigRestClient(RemoteConfigRestServiceProperties properties, @Qualifier("remoteConfigRestTemplate") org.springframework.web.client.RestTemplate restTemplate, RemoteConfigObjectFactory remoteConfigObjectFactory)
-
remotePropertySource
@Bean @Order(0) public static org.springframework.context.support.PropertySourcesPlaceholderConfigurer remotePropertySource(org.springframework.context.ConfigurableApplicationContext configurableContext, RemoteConfigServiceClient client)
-
-