Bumping versions
This commit is contained in:
@@ -102,8 +102,7 @@ public abstract class AbstractAutoServiceRegistration<R extends Registration>
|
||||
this.registrationLifecycles = registrationLifecycles;
|
||||
}
|
||||
|
||||
public void addRegistrationManagementLifecycle(
|
||||
RegistrationManagementLifecycle<R> registrationManagementLifecycle) {
|
||||
public void addRegistrationManagementLifecycle(RegistrationManagementLifecycle<R> registrationManagementLifecycle) {
|
||||
this.registrationManagementLifecycles.add(registrationManagementLifecycle);
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ package org.springframework.cloud.client.serviceregistry;
|
||||
|
||||
/**
|
||||
* Service registration life cycle. This life cycle is only related to
|
||||
* {@link org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration#getManagementRegistration()}.
|
||||
* {@link org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration#getManagementRegistration()}.
|
||||
*
|
||||
* @author Zen Huifer
|
||||
*/
|
||||
|
||||
@@ -91,7 +91,7 @@ class AbstractAutoServiceRegistrationRegistrationLifecycleTests {
|
||||
|
||||
@EnableAutoConfiguration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
static class Config {
|
||||
static class Config {
|
||||
|
||||
@Bean
|
||||
public TestAutoServiceRegistrationLifecycle testAutoServiceRegistration(
|
||||
@@ -162,17 +162,17 @@ class AbstractAutoServiceRegistrationRegistrationLifecycleTests {
|
||||
|
||||
}
|
||||
|
||||
static class TestRegistrationLifecycleServiceRegistration
|
||||
implements ServiceRegistry<TestRegistrationLifecycleRegistration> {
|
||||
static class TestRegistrationLifecycleServiceRegistration
|
||||
implements ServiceRegistry<TestRegistrationLifecycleRegistration> {
|
||||
|
||||
private boolean registered = false;
|
||||
private boolean registered = false;
|
||||
|
||||
private boolean deregistered = false;
|
||||
private boolean deregistered = false;
|
||||
|
||||
@Override public void register(
|
||||
TestRegistrationLifecycleRegistration registration) {
|
||||
if (registration == null) {
|
||||
throw new NullPointerException();
|
||||
@Override
|
||||
public void register(TestRegistrationLifecycleRegistration registration) {
|
||||
if (registration == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
if (!(registration instanceof TestRegistrationLifecycleRegistration)) {
|
||||
this.registered = true;
|
||||
@@ -214,7 +214,7 @@ class AbstractAutoServiceRegistrationRegistrationLifecycleTests {
|
||||
|
||||
}
|
||||
|
||||
static class TestRegistrationLifecycleRegistration implements Registration {
|
||||
static class TestRegistrationLifecycleRegistration implements Registration {
|
||||
|
||||
private final Map<String, String> metadata = new HashMap<>(8);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user