-
Notifications
You must be signed in to change notification settings - Fork 720
Create a ServiceRegistry interface. #119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| import org.springframework.beans.BeansException; | ||
| import org.springframework.boot.context.embedded.EmbeddedServletContainerInitializedEvent; | ||
| import org.springframework.cloud.client.discovery.event.InstanceRegisteredEvent; | ||
| import org.springframework.cloud.client.serviceregistry.Registration; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like how this is mixed up here. How about I move *Lifecycle to it's own package?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, DiscoveryLifecycle doesn't even make sense anymore. Maybe AutoRegistration? It's not a function of discovery at all.
|
Can you explain in a few words how do you see it work? Like what the flow is cause I don't quite follow it ATM :/ |
d0b74eb to
e0c6acd
Compare
Allows service discovery systems to register more than one instance. Automatic registration will still take place. fixes gh-9
Created AbstractAutoServiceRegistration with new methods and reference to ServiceRegistry. It extends AbstractDiscoveryLifecycle.
9c9c026 to
81993a4
Compare
|
Is there any plan to merge and release it? |
|
Closed via bf4b6e3 @yidongnan see spring-cloud-release milestones for tentative release dates. |
Allows service discovery systems to register more than one instance.
Automatic registration will still take place.
fixes gh-9
/cc @dsyer @adriancole @marcingrzejszczak