Class VcapProcessor

  • All Implemented Interfaces:
    org.springframework.boot.env.EnvironmentPostProcessor

    @Service
    @Configuration
    public class VcapProcessor
    extends Object
    implements org.springframework.boot.env.EnvironmentPostProcessor
    Parses VCAP_SERVICES environment variable and sets corresponding property values.

    Note that this class gets invoked before Spring creates the logging subsystem, so we just use System.out.println instead.

    • Constructor Detail

      • VcapProcessor

        public VcapProcessor()
    • Method Detail

      • postProcessEnvironment

        public void postProcessEnvironment​(org.springframework.core.env.ConfigurableEnvironment confEnv,
                                           org.springframework.boot.SpringApplication app)
        Specified by:
        postProcessEnvironment in interface org.springframework.boot.env.EnvironmentPostProcessor