Commit cf7deab5 by Nepxion

重构类结构

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