add InstanceRegisteredEvent
This commit is contained in:
@@ -45,9 +45,12 @@ public abstract class AbstractDiscoveryLifecycle implements DiscoveryLifecycle,
|
||||
if (ManagementServerPortUtils.isDifferent(context)) {
|
||||
registerManagement();
|
||||
}
|
||||
context.publishEvent(new InstanceRegisteredEvent<>(this, getConfiguration()));
|
||||
running = true;
|
||||
}
|
||||
|
||||
protected abstract Object getConfiguration();
|
||||
|
||||
protected abstract void register();
|
||||
|
||||
protected void registerManagement() {}
|
||||
|
||||
Reference in New Issue
Block a user