Package io.pivotal.cfenv.spring.boot
Class CfEnvironmentPostProcessor
java.lang.Object
io.pivotal.cfenv.spring.boot.CfEnvironmentPostProcessor
- All Implemented Interfaces:
CfServiceEnablingEnvironmentPostProcessor,EventListener,org.springframework.boot.env.EnvironmentPostProcessor,ApplicationListener<ApplicationEvent>,Ordered
@Component
public class CfEnvironmentPostProcessor
extends Object
implements CfServiceEnablingEnvironmentPostProcessor, Ordered, ApplicationListener<ApplicationEvent>
An EnvironmentPostProcessor that iterates over
CfEnvProcessor implementations to contribute
Spring Boot properties for bound Cloud Foundry Services.
Implementation of CfEnvProcessorshould be registered using the
resources/META-INF/spring.factories property file.- Author:
- Mark Pollack, David Turanski
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()protected voidEnvironmentPostProcessors can end up getting called twice due to spring-cloud-commons functionalityvoidvoidpostProcessEnvironment(ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application) voidsetOrder(int order) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecutionMethods inherited from interface io.pivotal.cfenv.spring.boot.CfServiceEnablingEnvironmentPostProcessor
isEnabled
-
Constructor Details
-
CfEnvironmentPostProcessor
public CfEnvironmentPostProcessor()
-
-
Method Details
-
getOrder
public int getOrder() -
setOrder
public void setOrder(int order) -
postProcessEnvironment
public void postProcessEnvironment(ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application) - Specified by:
postProcessEnvironmentin interfaceorg.springframework.boot.env.EnvironmentPostProcessor
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceApplicationListener<ApplicationEvent>
-
increaseInvocationCount
protected void increaseInvocationCount()EnvironmentPostProcessors can end up getting called twice due to spring-cloud-commons functionality
-