Move eureka events to server project
This commit is contained in:
@@ -73,6 +73,12 @@
|
||||
<artifactId>bootstrap</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<!-- Only needed at compile time -->
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
|
||||
@@ -32,11 +32,11 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.cloud.netflix.eureka.DiscoveryManagerIntitializer;
|
||||
import org.springframework.cloud.netflix.eureka.EurekaServerConfigBean;
|
||||
import org.springframework.cloud.netflix.eureka.advice.LeaseManagerLite;
|
||||
import org.springframework.cloud.netflix.eureka.advice.PiggybackMethodInterceptor;
|
||||
import org.springframework.cloud.netflix.eureka.event.EurekaRegistryAvailableEvent;
|
||||
import org.springframework.cloud.netflix.eureka.event.EurekaServerStartedEvent;
|
||||
import org.springframework.cloud.netflix.eureka.event.LeaseManagerMessageBroker;
|
||||
import org.springframework.cloud.netflix.eureka.server.advice.LeaseManagerLite;
|
||||
import org.springframework.cloud.netflix.eureka.server.advice.PiggybackMethodInterceptor;
|
||||
import org.springframework.cloud.netflix.eureka.server.event.EurekaRegistryAvailableEvent;
|
||||
import org.springframework.cloud.netflix.eureka.server.event.EurekaServerStartedEvent;
|
||||
import org.springframework.cloud.netflix.eureka.server.event.LeaseManagerMessageBroker;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.ApplicationListener;
|
||||
import org.springframework.context.SmartLifecycle;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.cloud.netflix.eureka.advice;
|
||||
package org.springframework.cloud.netflix.eureka.server.advice;
|
||||
|
||||
import com.netflix.appinfo.InstanceInfo;
|
||||
import com.netflix.eureka.lease.LeaseManager;
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.cloud.netflix.eureka.advice;
|
||||
package org.springframework.cloud.netflix.eureka.server.advice;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.springframework.cloud.netflix.eureka.event;
|
||||
package org.springframework.cloud.netflix.eureka.server.event;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.springframework.cloud.netflix.eureka.event;
|
||||
package org.springframework.cloud.netflix.eureka.server.event;
|
||||
|
||||
import com.netflix.appinfo.InstanceInfo;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.springframework.cloud.netflix.eureka.event;
|
||||
package org.springframework.cloud.netflix.eureka.server.event;
|
||||
|
||||
import com.netflix.appinfo.InstanceInfo;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.cloud.netflix.eureka.event;
|
||||
package org.springframework.cloud.netflix.eureka.server.event;
|
||||
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.cloud.netflix.eureka.event;
|
||||
package org.springframework.cloud.netflix.eureka.server.event;
|
||||
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.springframework.cloud.netflix.eureka.event;
|
||||
package org.springframework.cloud.netflix.eureka.server.event;
|
||||
|
||||
import static com.google.common.collect.Iterables.tryFind;
|
||||
|
||||
@@ -9,7 +9,7 @@ import javax.annotation.Nullable;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.cloud.netflix.eureka.advice.LeaseManagerLite;
|
||||
import org.springframework.cloud.netflix.eureka.server.advice.LeaseManagerLite;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
|
||||
import com.google.common.base.Optional;
|
||||
Reference in New Issue
Block a user