Commit daff8b55 by Nepxion

优化类结构

parent 09f5e762
......@@ -34,6 +34,6 @@ public class ConsulAdapter implements PluginAdapter {
@Override
public String getVersion() {
return environment.getProperty(ConsulConstant.CONSUL_METADATA_VERSION);
return environment.getProperty(ConsulConstant.METADATA_VERSION);
}
}
\ No newline at end of file
......@@ -10,5 +10,5 @@ package com.nepxion.discovery.plugin.framework.constant;
*/
public class ConsulConstant {
public static final String CONSUL_METADATA_VERSION = "spring.cloud.consul.discovery.tags.version";
public static final String METADATA_VERSION = "spring.cloud.consul.discovery.tags.version";
}
\ No newline at end of file
......@@ -34,6 +34,6 @@ public class EurekaAdapter implements PluginAdapter {
@Override
public String getVersion() {
return environment.getProperty(EurekaConstant.EUREKA_METADATA_VERSION);
return environment.getProperty(EurekaConstant.METADATA_VERSION);
}
}
\ No newline at end of file
......@@ -10,5 +10,5 @@ package com.nepxion.discovery.plugin.framework.constant;
*/
public class EurekaConstant {
public static final String EUREKA_METADATA_VERSION = "eureka.instance.metadataMap.version";
public static final String METADATA_VERSION = "eureka.instance.metadataMap.version";
}
\ No newline at end of file
......@@ -34,6 +34,6 @@ public class ZookeeperAdapter implements PluginAdapter {
@Override
public String getVersion() {
return environment.getProperty(ZookeeperConstant.ZOOKEEPER_METADATA_VERSION);
return environment.getProperty(ZookeeperConstant.METADATA_VERSION);
}
}
\ No newline at end of file
......@@ -10,5 +10,5 @@ package com.nepxion.discovery.plugin.framework.constant;
*/
public class ZookeeperConstant {
public static final String ZOOKEEPER_METADATA_VERSION = "spring.cloud.zookeeper.discovery.metadata.version";
public static final String METADATA_VERSION = "spring.cloud.zookeeper.discovery.metadata.version";
}
\ No newline at end of file
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