Class DependencyEnvironmentPostProcessor

java.lang.Object
org.springframework.cloud.zookeeper.discovery.dependency.DependencyEnvironmentPostProcessor
All Implemented Interfaces:
org.springframework.boot.env.EnvironmentPostProcessor, org.springframework.core.Ordered

public class DependencyEnvironmentPostProcessor extends Object implements org.springframework.boot.env.EnvironmentPostProcessor, org.springframework.core.Ordered
EnvironmentPostProcessor that sets spring.application.name. Specifically, if spring.application.name doesn't contain a / and spring.cloud.zookeeper.prefix has text, it sets spring.application.name to /${spring.cloud.zookeeper.prefix}/${spring.application.name}
Since:
1.0.0
Author:
Spencer Gibb
  • Constructor Details

    • DependencyEnvironmentPostProcessor

      public DependencyEnvironmentPostProcessor()
  • Method Details

    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • postProcessEnvironment

      public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)
      Specified by:
      postProcessEnvironment in interface org.springframework.boot.env.EnvironmentPostProcessor