Class VcapProcessor
- java.lang.Object
-
- com.azure.spring.cloudfoundry.environment.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.
-
-
Field Summary
Fields Modifier and Type Field Description static StringLOG_VARIABLELog variablestatic StringVCAP_SERVICESVCAP services
-
Constructor Summary
Constructors Constructor Description VcapProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<VcapPojo>parseVcapService(String vcapServices)Parses the VCap service.voidpostProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment confEnv, org.springframework.boot.SpringApplication app)
-
-
-
Field Detail
-
VCAP_SERVICES
public static final String VCAP_SERVICES
VCAP services- See Also:
- Constant Field Values
-
LOG_VARIABLE
public static final String LOG_VARIABLE
Log variable- See Also:
- Constant Field Values
-
-