Commit cf7deab5 by Nepxion

重构类结构

parent 50698a4d
......@@ -18,7 +18,7 @@ import org.springframework.context.annotation.Bean;
import com.nepxion.discovery.plugin.example.service.extension.MyDiscoveryListener;
import com.nepxion.discovery.plugin.example.service.extension.MyLoadBalanceListener;
import com.nepxion.discovery.plugin.example.service.extension.MyRegisterListener;
import com.nepxion.discovery.plugin.example.service.extension.MyServiceDiscoveryEnabledAdapter;
import com.nepxion.discovery.plugin.example.service.extension.MyDiscoveryEnabledAdapter;
import com.nepxion.discovery.plugin.example.service.extension.MySubscriber;
@SpringBootApplication
......@@ -52,7 +52,7 @@ public class DiscoveryApplicationA1 {
}
@Bean
public MyServiceDiscoveryEnabledAdapter myServiceDiscoveryEnabledAdapter() {
return new MyServiceDiscoveryEnabledAdapter();
public MyDiscoveryEnabledAdapter myDiscoveryEnabledAdapter() {
return new MyDiscoveryEnabledAdapter();
}
}
\ No newline at end of file
......@@ -22,8 +22,8 @@ import com.nepxion.discovery.plugin.strategy.extension.service.context.ServiceSt
import com.nepxion.discovery.plugin.strategy.extension.service.context.ServiceStrategyContextHolder;
import com.netflix.loadbalancer.Server;
public class MyServiceDiscoveryEnabledAdapter implements DiscoveryEnabledAdapter {
private static final Logger LOG = LoggerFactory.getLogger(MyServiceDiscoveryEnabledAdapter.class);
public class MyDiscoveryEnabledAdapter implements DiscoveryEnabledAdapter {
private static final Logger LOG = LoggerFactory.getLogger(MyDiscoveryEnabledAdapter.class);
@Autowired
protected PluginAdapter pluginAdapter;
......
......@@ -15,7 +15,7 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;
import com.nepxion.discovery.plugin.example.zuul.extension.MyZuulDiscoveryEnabledAdapter;
import com.nepxion.discovery.plugin.example.zuul.extension.MyDiscoveryEnabledAdapter;
@SpringBootApplication
@EnableDiscoveryClient
......@@ -28,7 +28,7 @@ public class DiscoveryApplicationZuul {
}
@Bean
public MyZuulDiscoveryEnabledAdapter myZuulDiscoveryEnabledAdapter() {
return new MyZuulDiscoveryEnabledAdapter();
public MyDiscoveryEnabledAdapter myDiscoveryEnabledAdapter() {
return new MyDiscoveryEnabledAdapter();
}
}
\ No newline at end of file
......@@ -23,8 +23,8 @@ import com.nepxion.discovery.plugin.strategy.discovery.DiscoveryEnabledAdapter;
import com.netflix.loadbalancer.Server;
import com.netflix.zuul.context.RequestContext;
public class MyZuulDiscoveryEnabledAdapter implements DiscoveryEnabledAdapter {
private static final Logger LOG = LoggerFactory.getLogger(MyZuulDiscoveryEnabledAdapter.class);
public class MyDiscoveryEnabledAdapter implements DiscoveryEnabledAdapter {
private static final Logger LOG = LoggerFactory.getLogger(MyDiscoveryEnabledAdapter.class);
@Autowired
protected PluginAdapter pluginAdapter;
......
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