Commit 03740f13 by Michael Tecourt Committed by Spencer Gibb

Make EurekaDiscoveryClient.EurekaServiceInstance constructor public (#1794)

Make EurekaDiscoveryClient.EurekaServiceInstance constructor public fixes gh-1792
parent d3314447
......@@ -27,6 +27,7 @@ import java.util.Map;
import org.springframework.cloud.client.DefaultServiceInstance;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.util.Assert;
import com.netflix.appinfo.EurekaInstanceConfig;
import com.netflix.appinfo.InstanceInfo;
......@@ -102,7 +103,8 @@ public class EurekaDiscoveryClient implements DiscoveryClient {
public static class EurekaServiceInstance implements ServiceInstance {
private InstanceInfo instance;
EurekaServiceInstance(InstanceInfo instance) {
public EurekaServiceInstance(InstanceInfo instance) {
Assert.notNull(instance, "Service instance required");
this.instance = instance;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment