2 * Copyright (c) 2016 Cisco and/or its affiliates.
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.vnf.vlb;
19 import net.jmob.guice.conf.core.BindConfig;
20 import net.jmob.guice.conf.core.InjectConfig;
21 import net.jmob.guice.conf.core.Syntax;
24 * Class containing static configuration for vlb-business-vnf-onap-plugin module,<br>
25 * either loaded from property file vlb-business-vnf-onap-plugin.json from classpath.
27 * Further documentation for the configuration injection can be found at:
28 * https://github.com/yyvess/gconf
30 @BindConfig(value = "vlb-business-vnf-onap-plugin", syntax = Syntax.JSON)
31 public final class ModuleConfiguration {
33 // TODO change the sample property to real plugin configuration
34 // If there is no such configuration, remove this, vlb-business-vnf-onap-plugin.json resource and its wiring from Module class
37 * Sample property that's injected from external json configuration file.
39 @InjectConfig("sample-prop")
40 public String sampleProp;
43 * Constant name used to identify vlb-business-vnf-onap-plugin plugin specific components during dependency injection.
45 public static final String ELEMENT_SERVICE_NAME = "element-service";