2 * Copyright 2016 ZTE Corporation.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org.onap.aai.esr;
19 import com.fasterxml.jackson.annotation.JsonProperty;
20 import io.dropwizard.Configuration;
21 import io.dropwizard.db.DataSourceFactory;
22 import org.hibernate.validator.constraints.NotEmpty;
24 import javax.validation.Valid;
25 import javax.validation.constraints.NotNull;
29 public class ExtsysAppConfiguration extends Configuration {
31 private String template;
34 private String defaultName = "OPENO-Extsys";
37 private String msbServerAddr;
39 private String serviceIp;
43 private DataSourceFactory database = new DataSourceFactory();
45 @JsonProperty("database")
46 public DataSourceFactory getDataSourceFactory() {
50 @JsonProperty("database")
51 public void setDataSourceFactory(DataSourceFactory dataSourceFactory) {
52 this.database = dataSourceFactory;
56 public String getTemplate() {
61 public void setTemplate(String template) {
62 this.template = template;
66 public String getDefaultName() {
71 public void setDefaultName(String name) {
72 this.defaultName = name;
76 public String getMsbServerAddr() {
81 public void setMsbServerAddr(String msbServerAddr) {
82 this.msbServerAddr = msbServerAddr;
85 public String getServiceIp() {
90 public void setServiceIp(String serviceIp) {
91 this.serviceIp = serviceIp;