Package org.hglteam.config.remote
Class RemoteConfigurationInitializerBase<TClient extends RemoteConfigServiceClient,TProperties extends RemoteConfigServiceProperties,TPropertyBuilder extends RemoteConfigServiceProperties.RemoteConfigServicePropertiesBuilder<? extends TProperties,?>>
- java.lang.Object
-
- org.hglteam.config.remote.RemoteConfigurationInitializerBase<TClient,TProperties,TPropertyBuilder>
-
- All Implemented Interfaces:
org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>
- Direct Known Subclasses:
RestRemoteConfigurationInitializer
public abstract class RemoteConfigurationInitializerBase<TClient extends RemoteConfigServiceClient,TProperties extends RemoteConfigServiceProperties,TPropertyBuilder extends RemoteConfigServiceProperties.RemoteConfigServicePropertiesBuilder<? extends TProperties,?>> extends Object implements org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>
-
-
Constructor Summary
Constructors Constructor Description RemoteConfigurationInitializerBase()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected RemoteConfigObjectFactorycreateRemoteConfigObjectFactory()protected abstract TClientcreateRemoteConfigServiceClient(TProperties properties, RemoteConfigObjectFactory objectFactory)protected org.springframework.retry.support.RetryTemplatecreateRetryTemplate(org.springframework.core.env.Environment e)protected abstract TPropertyBuildergetRemoteConfigClientPropertyBuilder(org.springframework.core.env.Environment environment)voidinitialize(org.springframework.context.ConfigurableApplicationContext context)protected static String[]splitLabelsOrEmpty(String property)
-
-
-
Method Detail
-
initialize
public void initialize(org.springframework.context.ConfigurableApplicationContext context)
- Specified by:
initializein interfaceorg.springframework.context.ApplicationContextInitializer<TClient extends RemoteConfigServiceClient>
-
createRetryTemplate
protected org.springframework.retry.support.RetryTemplate createRetryTemplate(org.springframework.core.env.Environment e)
-
getRemoteConfigClientPropertyBuilder
protected abstract TPropertyBuilder getRemoteConfigClientPropertyBuilder(org.springframework.core.env.Environment environment)
-
createRemoteConfigServiceClient
protected abstract TClient createRemoteConfigServiceClient(TProperties properties, RemoteConfigObjectFactory objectFactory)
-
createRemoteConfigObjectFactory
protected RemoteConfigObjectFactory createRemoteConfigObjectFactory()
-
-