@ -45,6 +46,7 @@ public abstract class SingleImplementationImportSelector<T> implements
@@ -45,6 +46,7 @@ public abstract class SingleImplementationImportSelector<T> implements
privateClassLoaderbeanClassLoader;
privateClass<T>annotationClass;
privateEnvironmentenvironment;
@SuppressWarnings("unchecked")
@ -72,14 +74,13 @@ public abstract class SingleImplementationImportSelector<T> implements
@@ -72,14 +74,13 @@ public abstract class SingleImplementationImportSelector<T> implements
if(factories.size()>1){
Stringfactory=factories.get(0);
// there should only every be one DiscoveryClient
log.warn(
"More than one implementation of @{}. Using {} out of available {}",
getSimpleName(),factory,factories);
log.warn("More than one implementation "
+"of @{}. Using {} out of available {}",getSimpleName(),factory,
@ -105,4 +106,5 @@ public abstract class SingleImplementationImportSelector<T> implements
@@ -105,4 +106,5 @@ public abstract class SingleImplementationImportSelector<T> implements
@ -31,9 +31,13 @@ public abstract class AbstractDiscoveryLifecycle implements DiscoveryLifecycle,
@@ -31,9 +31,13 @@ public abstract class AbstractDiscoveryLifecycle implements DiscoveryLifecycle,
ApplicationContextAware{
protectedbooleanautoStartup=true;
protectedbooleanrunning;
protectedintorder=0;
protectedApplicationContextcontext;
protectedEnvironmentenvironment;
@Override
@ -84,12 +88,13 @@ public abstract class AbstractDiscoveryLifecycle implements DiscoveryLifecycle,
@@ -84,12 +88,13 @@ public abstract class AbstractDiscoveryLifecycle implements DiscoveryLifecycle,
@ -130,4 +135,5 @@ public abstract class AbstractDiscoveryLifecycle implements DiscoveryLifecycle,
@@ -130,4 +135,5 @@ public abstract class AbstractDiscoveryLifecycle implements DiscoveryLifecycle,
@ -65,4 +66,5 @@ public class DiscoveryClientHealthIndicator implements DiscoveryHealthIndicator,
@@ -65,4 +66,5 @@ public class DiscoveryClientHealthIndicator implements DiscoveryHealthIndicator,
@ -50,4 +50,5 @@ public class DiscoveryCompositeHealthIndicator extends CompositeHealthIndicator
@@ -50,4 +50,5 @@ public class DiscoveryCompositeHealthIndicator extends CompositeHealthIndicator
@ -34,4 +34,5 @@ public class DiscoveryHeartbeatEvent extends ApplicationEvent {
@@ -34,4 +34,5 @@ public class DiscoveryHeartbeatEvent extends ApplicationEvent {
@ -39,4 +42,5 @@ public class InstanceRegisteredEvent<T> extends ApplicationEvent {
@@ -39,4 +42,5 @@ public class InstanceRegisteredEvent<T> extends ApplicationEvent {