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
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()voidpostProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)
-
Constructor Details
-
DependencyEnvironmentPostProcessor
public DependencyEnvironmentPostProcessor()
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
postProcessEnvironment
public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application) - Specified by:
postProcessEnvironmentin interfaceorg.springframework.boot.env.EnvironmentPostProcessor
-