All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zodiac.autoconfigure.bootstrap.discovery.simple.reactive.SimpleReactiveAppDiscoveryProperties Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
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));
        });
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy