@Service @Configuration public class VcapProcessor extends Object implements org.springframework.boot.env.EnvironmentPostProcessor
Note that this class gets invoked before Spring creates the logging subsystem, so we just use System.out.println instead.
| Modifier and Type | Field and Description |
|---|---|
private static String |
AZURE |
private static String |
CREDENTIALS |
private static String |
LABEL |
static String |
LOG_VARIABLE |
private boolean |
logFlag |
private static String |
NAME |
private static String |
PLAN |
private static String |
PROVIDER |
private static String |
SYSLOG_DRAIN_URL |
private static String |
TAGS |
static String |
VCAP_SERVICES |
private static String |
VOLUME_MOUNTS |
| Constructor and Description |
|---|
VcapProcessor() |
| Modifier and Type | Method and Description |
|---|---|
private void |
log(String msg) |
VcapResult |
parse(String vcapServices) |
private void |
parseMap(org.json.JSONObject mapObject,
Map<String,String> target) |
private VcapPojo |
parseService(String serviceBrokerName,
org.json.JSONArray azureService,
String vCapServices,
int index) |
private String |
parseString(org.json.JSONObject service,
String key) |
private String[] |
parseStringArray(org.json.JSONArray strings) |
void |
postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment confEnv,
org.springframework.boot.SpringApplication app) |
public static final String VCAP_SERVICES
public static final String LOG_VARIABLE
private static final String AZURE
private static final String CREDENTIALS
private static final String LABEL
private static final String NAME
private static final String PLAN
private static final String PROVIDER
private static final String SYSLOG_DRAIN_URL
private static final String TAGS
private static final String VOLUME_MOUNTS
private boolean logFlag
public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment confEnv,
org.springframework.boot.SpringApplication app)
postProcessEnvironment in interface org.springframework.boot.env.EnvironmentPostProcessorpublic VcapResult parse(String vcapServices)
private VcapPojo parseService(String serviceBrokerName, org.json.JSONArray azureService, String vCapServices, int index)
private String[] parseStringArray(org.json.JSONArray strings)
private void log(String msg)
Copyright © 2018 Microsoft. All rights reserved.