Package io.pivotal.cfenv.spring.boot
Interface CfEnvProcessor
- All Known Implementing Classes:
AmqpCfEnvProcessor,CassandraCfEnvProcessor,CredHubCfEnvProcessor,MongoCfEnvProcessor,RedisCfEnvProcessor,VaultCfEnvProcessor
public interface CfEnvProcessor
Implementations will be called by
CfEnvironmentPostProcessor to
find a specific type of service and set Spring Boot properties.
Implementation should be registered using the resources/META-INF/spring.factories property file.- Author:
- Scott Frederick, Mark Pollack
-
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.
-
Method Details
-
accept
boolean accept(io.pivotal.cfenv.core.CfService service) Determine if a service is supported by this processor.- Parameters:
service- a service to inspect- Returns:
trueif the service matches criteria;falseotherwise
-
process
Given the credentials of the single matching service, set the property values that will be used to create the MapPropertySource.- Parameters:
cfCredentials- Credentials of the single matching serviceproperties- map to set Spring Boot properties
-
getProperties
CfEnvProcessorProperties getProperties()Properties describing a CfEnvProcessor, mainly used for better logging messages inCfEnvProcessor.- Returns:
- processor properties
-