Package io.pivotal.cfenv.spring.boot
Class VaultCfEnvProcessor
java.lang.Object
io.pivotal.cfenv.spring.boot.VaultCfEnvProcessor
- All Implemented Interfaces:
CfEnvProcessor
- Author:
- Dylan Roberts
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(io.pivotal.cfenv.core.CfService service) Determine if a service is supported by this processor.Properties describing a CfEnvProcessor, mainly used for better logging messages inCfEnvProcessor.voidGiven the credentials of the single matching service, set the property values that will be used to create the MapPropertySource.
-
Constructor Details
-
VaultCfEnvProcessor
public VaultCfEnvProcessor()
-
-
Method Details
-
accept
public boolean accept(io.pivotal.cfenv.core.CfService service) Description copied from interface:CfEnvProcessorDetermine if a service is supported by this processor.- Specified by:
acceptin interfaceCfEnvProcessor- Parameters:
service- a service to inspect- Returns:
trueif the service matches criteria;falseotherwise
-
process
public void process(io.pivotal.cfenv.core.CfCredentials cfCredentials, Map<String, Object> properties) Description copied from interface:CfEnvProcessorGiven the credentials of the single matching service, set the property values that will be used to create the MapPropertySource.- Specified by:
processin interfaceCfEnvProcessor- Parameters:
cfCredentials- Credentials of the single matching serviceproperties- map to set Spring Boot properties
-
getProperties
Description copied from interface:CfEnvProcessorProperties describing a CfEnvProcessor, mainly used for better logging messages inCfEnvProcessor.- Specified by:
getPropertiesin interfaceCfEnvProcessor- Returns:
- processor properties
-