use of com.netflix.appinfo.providers.EurekaConfigBasedInstanceInfoProvider in project eureka by Netflix.
the class ExampleEurekaClient method initializeApplicationInfoManager.
private static synchronized ApplicationInfoManager initializeApplicationInfoManager(EurekaInstanceConfig instanceConfig) {
if (applicationInfoManager == null) {
InstanceInfo instanceInfo = new EurekaConfigBasedInstanceInfoProvider(instanceConfig).get();
applicationInfoManager = new ApplicationInfoManager(instanceConfig, instanceInfo);
}
return applicationInfoManager;
}
Aggregations