org.zodiac.autoconfigure.bootstrap.discovery.simple.reactive.SimpleReactiveAppDiscoveryProperties Maven / Gradle / Ivy
package org.zodiac.autoconfigure.bootstrap.discovery.simple.reactive;
import javax.annotation.PostConstruct;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.zodiac.commons.constants.SystemPropertiesConstants;
import org.zodiac.core.bootstrap.discovery.simple.reactive.SimpleReactiveAppDiscoveryInfo;
@ConfigurationProperties(prefix = SystemPropertiesConstants.Zodiac.SPRING_BOOTSTRAP_DISCOVERY_SIMPLE_PREFIX)
public class SimpleReactiveAppDiscoveryProperties extends SimpleReactiveAppDiscoveryInfo {
@PostConstruct
public void init() {
this.getRemote().forEach((key, instances) -> {
instances.forEach(instance -> instance.setAppServiceId(key));
});
}
}