From b3f6bac3e598a3ea24501c81deb55df419f3a64c Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Wed, 30 Dec 2015 15:05:43 +0000 Subject: [PATCH] Add some docs for config properties --- .../CloudFoundryDiscoveryProperties.java | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/spring-cloud-cloudfoundry-discovery/src/main/java/org/springframework/cloud/cloudfoundry/discovery/CloudFoundryDiscoveryProperties.java b/spring-cloud-cloudfoundry-discovery/src/main/java/org/springframework/cloud/cloudfoundry/discovery/CloudFoundryDiscoveryProperties.java index 6090083..93e3102 100644 --- a/spring-cloud-cloudfoundry-discovery/src/main/java/org/springframework/cloud/cloudfoundry/discovery/CloudFoundryDiscoveryProperties.java +++ b/spring-cloud-cloudfoundry-discovery/src/main/java/org/springframework/cloud/cloudfoundry/discovery/CloudFoundryDiscoveryProperties.java @@ -24,16 +24,28 @@ import org.springframework.boot.context.properties.ConfigurationProperties; @ConfigurationProperties(prefix = "spring.cloud.cloudfoundry.discovery") public class CloudFoundryDiscoveryProperties { + /** + * URL of Cloud Foundry API (Cloud Controller). + */ private String url = "https://api.run.pivotal.io"; + /** + * Email address of user to authenticate. + */ private String email; + /** + * Password for user to authenticate and obtain token. + */ private String password; + /** + * Flag to indicate that discovery is enabled. + */ private boolean enabled = true; public boolean isEnabled() { - return enabled; + return this.enabled; } public void setEnabled(boolean enabled) { @@ -41,7 +53,7 @@ public class CloudFoundryDiscoveryProperties { } public String getUrl() { - return url; + return this.url; } public void setUrl(String cloudControllerUrl) { @@ -49,7 +61,7 @@ public class CloudFoundryDiscoveryProperties { } public String getEmail() { - return email; + return this.email; } public void setEmail(String email) { @@ -57,7 +69,7 @@ public class CloudFoundryDiscoveryProperties { } public String getPassword() { - return password; + return this.password; } public void setPassword(String password) {