@ -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() {}