2 * Copyright 2017 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.
16 package org.onap.holmes.engine;
18 import com.fasterxml.jackson.annotation.JsonProperty;
19 import io.dropwizard.Configuration;
20 import io.dropwizard.db.DataSourceFactory;
21 import javax.validation.Valid;
22 import javax.validation.constraints.NotNull;
23 import org.jvnet.hk2.annotations.Service;
26 public class EngineDAppConfig extends Configuration {
28 private String apidescription = "Holmes rule management rest API";
32 private DataSourceFactory database = new DataSourceFactory();
34 @JsonProperty("database")
35 public DataSourceFactory getDataSourceFactory() {
39 @JsonProperty("database")
40 public void setDataSourceFactory(DataSourceFactory dataSourceFactory) {
41 this.database = dataSourceFactory;
44 public String getApidescription() {
45 return apidescription;
48 public void setApidescription(String apidescription) {
49 this.apidescription = apidescription;