Move eureka events to server project

This commit is contained in:
Dave Syer
2014-10-14 17:49:11 +01:00
parent 826d5ff383
commit e52949e592
10 changed files with 20 additions and 14 deletions

View File

@@ -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>

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -1,4 +1,4 @@
package org.springframework.cloud.netflix.eureka.event;
package org.springframework.cloud.netflix.eureka.server.event;
import com.netflix.appinfo.InstanceInfo;

View File

@@ -1,4 +1,4 @@
package org.springframework.cloud.netflix.eureka.event;
package org.springframework.cloud.netflix.eureka.server.event;
import com.netflix.appinfo.InstanceInfo;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;