Add serviceIp property which is used to config wso2-ext microservice ipaddress
[vfc/nfvo/wfengine.git] / wso2bpel-ext / wso2bpel-core / wso2bpel-mgr / src / main / java / org / openo / carbon / bpel / Wso2BpelConfiguration.java
index 10ef924..9c0967e 100644 (file)
@@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
 import io.dropwizard.db.DataSourceFactory;
 import org.hibernate.validator.constraints.NotEmpty;
 
+import javax.validation.Valid;
 import javax.validation.constraints.NotNull;
 
 public class Wso2BpelConfiguration extends Configuration {
@@ -57,6 +58,9 @@ public class Wso2BpelConfiguration extends Configuration {
   @NotEmpty
   private String wso2SslJksPassword;
   
+  @Valid
+  private String serviceIp;
+  
   @JsonProperty
   public String getTemplate() {
     return template;
@@ -172,4 +176,13 @@ public class Wso2BpelConfiguration extends Configuration {
     this.wso2SslJksPassword = wso2SslJksPassword;
   }
 
+  @JsonProperty
+  public String getServiceIp() {
+    return serviceIp;
+  }
+
+  @JsonProperty
+  public void setServiceIp(String serviceIp) {
+    this.serviceIp = serviceIp;
+  }
 }