Commit 5e1ce507 by Nepxion

重构类结构

parent 9fe8c0f0
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>${project.groupId}</groupId> <groupId>${project.groupId}</groupId>
<artifactId>discovery-plugin-core</artifactId> <artifactId>discovery-plugin-framework</artifactId>
</dependency> </dependency>
<dependency> <dependency>
......
...@@ -24,7 +24,7 @@ import org.springframework.web.bind.annotation.RequestMapping; ...@@ -24,7 +24,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import com.nepxion.discovery.plugin.core.cache.PluginCache; import com.nepxion.discovery.plugin.framework.cache.PluginCache;
@ManagedResource(description = "Discovery endpoint") @ManagedResource(description = "Discovery endpoint")
public class ActuatorEndpoint implements MvcEndpoint, ApplicationContextAware, EnvironmentAware { public class ActuatorEndpoint implements MvcEndpoint, ApplicationContextAware, EnvironmentAware {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>${project.groupId}</groupId> <groupId>${project.groupId}</groupId>
<artifactId>discovery-plugin-core</artifactId> <artifactId>discovery-plugin-framework</artifactId>
</dependency> </dependency>
<dependency> <dependency>
......
...@@ -24,12 +24,12 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -24,12 +24,12 @@ import org.springframework.beans.factory.annotation.Autowired;
import com.nepxion.discovery.plugin.configcenter.constant.ConfigConstant; import com.nepxion.discovery.plugin.configcenter.constant.ConfigConstant;
import com.nepxion.discovery.plugin.configcenter.xml.Dom4JParser; import com.nepxion.discovery.plugin.configcenter.xml.Dom4JParser;
import com.nepxion.discovery.plugin.core.entity.DiscoveryEntity; import com.nepxion.discovery.plugin.framework.entity.DiscoveryEntity;
import com.nepxion.discovery.plugin.core.entity.DiscoveryServiceEntity; import com.nepxion.discovery.plugin.framework.entity.DiscoveryServiceEntity;
import com.nepxion.discovery.plugin.core.entity.PluginEntity; import com.nepxion.discovery.plugin.framework.entity.PluginEntity;
import com.nepxion.discovery.plugin.core.entity.RegisterEntity; import com.nepxion.discovery.plugin.framework.entity.RegisterEntity;
import com.nepxion.discovery.plugin.core.entity.RegisterFilterType; import com.nepxion.discovery.plugin.framework.entity.RegisterFilterType;
import com.nepxion.discovery.plugin.core.exception.PluginException; import com.nepxion.discovery.plugin.framework.exception.PluginException;
public class ConfigParser extends Dom4JParser { public class ConfigParser extends Dom4JParser {
private static final Logger LOG = LoggerFactory.getLogger(ConfigParser.class); private static final Logger LOG = LoggerFactory.getLogger(ConfigParser.class);
......
...@@ -22,7 +22,7 @@ import org.springframework.beans.factory.annotation.Value; ...@@ -22,7 +22,7 @@ import org.springframework.beans.factory.annotation.Value;
import com.google.common.eventbus.Subscribe; import com.google.common.eventbus.Subscribe;
import com.nepxion.discovery.plugin.configcenter.constant.ConfigConstant; import com.nepxion.discovery.plugin.configcenter.constant.ConfigConstant;
import com.nepxion.discovery.plugin.configcenter.loader.ConfigLoader; import com.nepxion.discovery.plugin.configcenter.loader.ConfigLoader;
import com.nepxion.discovery.plugin.core.exception.PluginException; import com.nepxion.discovery.plugin.framework.exception.PluginException;
import com.nepxion.eventbus.annotation.EventBus; import com.nepxion.eventbus.annotation.EventBus;
import com.nepxion.eventbus.core.Event; import com.nepxion.eventbus.core.Event;
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<artifactId>discovery-plugin-core</artifactId> <artifactId>discovery-plugin-framework</artifactId>
<name>Nepxion Discovery Plugin Core</name> <name>Nepxion Discovery Plugin Framework</name>
<packaging>jar</packaging> <packaging>jar</packaging>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<description>Nepxion Discovery is an enhancement for Spring Cloud Discovery</description> <description>Nepxion Discovery is an enhancement for Spring Cloud Discovery</description>
......
package com.nepxion.discovery.plugin.core.cache; package com.nepxion.discovery.plugin.framework.cache;
/** /**
* <p>Title: Nepxion Discovery</p> * <p>Title: Nepxion Discovery</p>
......
package com.nepxion.discovery.plugin.core.configuration; package com.nepxion.discovery.plugin.framework.configuration;
/** /**
* <p>Title: Nepxion Discovery</p> * <p>Title: Nepxion Discovery</p>
...@@ -14,10 +14,10 @@ import java.util.concurrent.locks.ReentrantReadWriteLock; ...@@ -14,10 +14,10 @@ import java.util.concurrent.locks.ReentrantReadWriteLock;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import com.nepxion.discovery.plugin.core.cache.PluginCache; import com.nepxion.discovery.plugin.framework.cache.PluginCache;
import com.nepxion.discovery.plugin.core.entity.PluginEntity; import com.nepxion.discovery.plugin.framework.entity.PluginEntity;
import com.nepxion.discovery.plugin.core.strategy.DiscoveryStrategy; import com.nepxion.discovery.plugin.framework.strategy.DiscoveryStrategy;
import com.nepxion.discovery.plugin.core.strategy.RegisterStrategy; import com.nepxion.discovery.plugin.framework.strategy.RegisterStrategy;
@Configuration @Configuration
public class PluginAutoConfiguration { public class PluginAutoConfiguration {
......
package com.nepxion.discovery.plugin.core.constant; package com.nepxion.discovery.plugin.framework.constant;
/** /**
* <p>Title: Nepxion Discovery</p> * <p>Title: Nepxion Discovery</p>
......
package com.nepxion.discovery.plugin.core.context; package com.nepxion.discovery.plugin.framework.context;
/** /**
* <p>Title: Nepxion Discovery</p> * <p>Title: Nepxion Discovery</p>
...@@ -17,8 +17,8 @@ import org.springframework.cloud.netflix.eureka.serviceregistry.EurekaServiceReg ...@@ -17,8 +17,8 @@ import org.springframework.cloud.netflix.eureka.serviceregistry.EurekaServiceReg
import org.springframework.context.ApplicationContextInitializer; import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.ConfigurableApplicationContext;
import com.nepxion.discovery.plugin.core.decorator.DiscoveryClientDecorator; import com.nepxion.discovery.plugin.framework.decorator.DiscoveryClientDecorator;
import com.nepxion.discovery.plugin.core.decorator.EurekaServiceRegistryDecorator; import com.nepxion.discovery.plugin.framework.decorator.EurekaServiceRegistryDecorator;
public class PluginApplicationContextInitializer implements ApplicationContextInitializer<ConfigurableApplicationContext> { public class PluginApplicationContextInitializer implements ApplicationContextInitializer<ConfigurableApplicationContext> {
@Override @Override
......
package com.nepxion.discovery.plugin.core.decorator; package com.nepxion.discovery.plugin.framework.decorator;
/** /**
* <p>Title: Nepxion Discovery</p> * <p>Title: Nepxion Discovery</p>
...@@ -16,8 +16,8 @@ import org.springframework.cloud.client.discovery.DiscoveryClient; ...@@ -16,8 +16,8 @@ import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment; import org.springframework.core.env.ConfigurableEnvironment;
import com.nepxion.discovery.plugin.core.constant.PluginConstant; import com.nepxion.discovery.plugin.framework.constant.PluginConstant;
import com.nepxion.discovery.plugin.core.strategy.DiscoveryStrategy; import com.nepxion.discovery.plugin.framework.strategy.DiscoveryStrategy;
public class DiscoveryClientDecorator implements DiscoveryClient { public class DiscoveryClientDecorator implements DiscoveryClient {
private DiscoveryClient discoveryClient; private DiscoveryClient discoveryClient;
......
package com.nepxion.discovery.plugin.core.decorator; package com.nepxion.discovery.plugin.framework.decorator;
/** /**
* <p>Title: Nepxion Discovery</p> * <p>Title: Nepxion Discovery</p>
...@@ -15,7 +15,7 @@ import org.springframework.cloud.netflix.eureka.serviceregistry.EurekaServiceReg ...@@ -15,7 +15,7 @@ import org.springframework.cloud.netflix.eureka.serviceregistry.EurekaServiceReg
import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment; import org.springframework.core.env.ConfigurableEnvironment;
import com.nepxion.discovery.plugin.core.strategy.RegisterStrategy; import com.nepxion.discovery.plugin.framework.strategy.RegisterStrategy;
public class EurekaServiceRegistryDecorator extends EurekaServiceRegistry { public class EurekaServiceRegistryDecorator extends EurekaServiceRegistry {
private ServiceRegistry<EurekaRegistration> serviceRegistry; private ServiceRegistry<EurekaRegistration> serviceRegistry;
......
package com.nepxion.discovery.plugin.core.entity; package com.nepxion.discovery.plugin.framework.entity;
/** /**
* <p>Title: Nepxion Discovery</p> * <p>Title: Nepxion Discovery</p>
......
package com.nepxion.discovery.plugin.core.entity; package com.nepxion.discovery.plugin.framework.entity;
/** /**
* <p>Title: Nepxion Discovery</p> * <p>Title: Nepxion Discovery</p>
......
package com.nepxion.discovery.plugin.core.entity; package com.nepxion.discovery.plugin.framework.entity;
/** /**
* <p>Title: Nepxion Discovery</p> * <p>Title: Nepxion Discovery</p>
......
package com.nepxion.discovery.plugin.core.entity; package com.nepxion.discovery.plugin.framework.entity;
/** /**
* <p>Title: Nepxion Discovery</p> * <p>Title: Nepxion Discovery</p>
......
package com.nepxion.discovery.plugin.core.entity; package com.nepxion.discovery.plugin.framework.entity;
/** /**
* <p>Title: Nepxion Discovery</p> * <p>Title: Nepxion Discovery</p>
......
package com.nepxion.discovery.plugin.core.exception; package com.nepxion.discovery.plugin.framework.exception;
/** /**
* <p>Title: Nepxion Discovery</p> * <p>Title: Nepxion Discovery</p>
......
package com.nepxion.discovery.plugin.core.strategy; package com.nepxion.discovery.plugin.framework.strategy;
/** /**
* <p>Title: Nepxion Discovery</p> * <p>Title: Nepxion Discovery</p>
...@@ -22,11 +22,11 @@ import org.apache.commons.lang3.StringUtils; ...@@ -22,11 +22,11 @@ import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.ServiceInstance; import org.springframework.cloud.client.ServiceInstance;
import com.nepxion.discovery.plugin.core.cache.PluginCache; import com.nepxion.discovery.plugin.framework.cache.PluginCache;
import com.nepxion.discovery.plugin.core.constant.PluginConstant; import com.nepxion.discovery.plugin.framework.constant.PluginConstant;
import com.nepxion.discovery.plugin.core.entity.DiscoveryEntity; import com.nepxion.discovery.plugin.framework.entity.DiscoveryEntity;
import com.nepxion.discovery.plugin.core.entity.DiscoveryServiceEntity; import com.nepxion.discovery.plugin.framework.entity.DiscoveryServiceEntity;
import com.nepxion.discovery.plugin.core.entity.PluginEntity; import com.nepxion.discovery.plugin.framework.entity.PluginEntity;
public class DiscoveryStrategy { public class DiscoveryStrategy {
@Autowired @Autowired
......
package com.nepxion.discovery.plugin.core.strategy; package com.nepxion.discovery.plugin.framework.strategy;
/** /**
* <p>Title: Nepxion Discovery</p> * <p>Title: Nepxion Discovery</p>
...@@ -17,11 +17,11 @@ import org.slf4j.Logger; ...@@ -17,11 +17,11 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import com.nepxion.discovery.plugin.core.constant.PluginConstant; import com.nepxion.discovery.plugin.framework.constant.PluginConstant;
import com.nepxion.discovery.plugin.core.entity.PluginEntity; import com.nepxion.discovery.plugin.framework.entity.PluginEntity;
import com.nepxion.discovery.plugin.core.entity.RegisterEntity; import com.nepxion.discovery.plugin.framework.entity.RegisterEntity;
import com.nepxion.discovery.plugin.core.entity.RegisterFilterType; import com.nepxion.discovery.plugin.framework.entity.RegisterFilterType;
import com.nepxion.discovery.plugin.core.exception.PluginException; import com.nepxion.discovery.plugin.framework.exception.PluginException;
public class RegisterStrategy { public class RegisterStrategy {
private static final Logger LOG = LoggerFactory.getLogger(RegisterStrategy.class); private static final Logger LOG = LoggerFactory.getLogger(RegisterStrategy.class);
......
package com.nepxion.discovery.plugin.core.util; package com.nepxion.discovery.plugin.framework.util;
/** /**
* <p>Title: Nepxion Discovery</p> * <p>Title: Nepxion Discovery</p>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<url>http://www.nepxion.com</url> <url>http://www.nepxion.com</url>
<modules> <modules>
<module>discovery-plugin-core</module> <module>discovery-plugin-framework</module>
<module>discovery-plugin-actuator</module> <module>discovery-plugin-actuator</module>
<module>discovery-plugin-config-center</module> <module>discovery-plugin-config-center</module>
<module>discovery-plugin-starter</module> <module>discovery-plugin-starter</module>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>${project.groupId}</groupId> <groupId>${project.groupId}</groupId>
<artifactId>discovery-plugin-core</artifactId> <artifactId>discovery-plugin-framework</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
......
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