Class RedisCfEnvProcessor

java.lang.Object
io.pivotal.cfenv.spring.boot.RedisCfEnvProcessor
All Implemented Interfaces:
CfEnvProcessor

public class RedisCfEnvProcessor extends Object implements CfEnvProcessor
Retrieve Redis properties from CfCredentials and set spring.redis Boot properties.
Author:
Mark Pollack, Scott Frederick
  • Constructor Details

    • RedisCfEnvProcessor

      public RedisCfEnvProcessor()
  • Method Details

    • accept

      public boolean accept(io.pivotal.cfenv.core.CfService service)
      Description copied from interface: CfEnvProcessor
      Determine if a service is supported by this processor.
      Specified by:
      accept in interface CfEnvProcessor
      Parameters:
      service - a service to inspect
      Returns:
      true if the service matches criteria; false otherwise
    • process

      public void process(io.pivotal.cfenv.core.CfCredentials cfCredentials, Map<String,Object> properties)
      Description copied from interface: CfEnvProcessor
      Given the credentials of the single matching service, set the property values that will be used to create the MapPropertySource.
      Specified by:
      process in interface CfEnvProcessor
      Parameters:
      cfCredentials - Credentials of the single matching service
      properties - map to set Spring Boot properties
    • getProperties

      public CfEnvProcessorProperties getProperties()
      Description copied from interface: CfEnvProcessor
      Properties describing a CfEnvProcessor, mainly used for better logging messages in CfEnvProcessor.
      Specified by:
      getProperties in interface CfEnvProcessor
      Returns:
      processor properties