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

solutions.bkit.configurableloadbalanced.MappedServicesConfig Maven / Gradle / Ivy

There is a newer version: 0.0.2
Show newest version
package solutions.bkit.configurableloadbalanced;

import java.util.Map;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@ConditionalOnProperty(prefix = "property-source-lb", name = "enabled", havingValue = "true")
@PropertySource("classpath:/services-map.properties")
@ConfigurationProperties(prefix = "property-source-lb")
public class MappedServicesConfig {
  private Map services;

  public MappedServicesConfig(Map services) {
    this.services = services;
  }

  public Map getServices() {
    return services;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy