Class AmqpCfEnvProcessor

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

public class AmqpCfEnvProcessor extends Object implements CfEnvProcessor
Retrieve AMQP properties from CfCredentials and set spring.rabbitmq Boot properties.
Author:
David Turanski, Scott Frederick
  • Constructor Details

    • AmqpCfEnvProcessor

      public AmqpCfEnvProcessor()
  • 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
    • populateAddress

      public void populateAddress(io.pivotal.cfenv.core.CfCredentials cfCredentials, Map<String,Object> properties, String uri)
    • 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