41b63f535443a508f8ba4c24b0f475b2fee270a4
[ccsdk/sli.git] /
1 /*
2  * ============LICENSE_START==========================================
3  * Copyright (c) 2019 PANTHEON.tech s.r.o.
4  * ===================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  *
8  *        http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
11  * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
12  * OF ANY KIND, either express or implied. See the License for the specific language governing permissions and
13  * limitations under the License.
14  * ============LICENSE_END============================================
15  *
16  */
17 package org.onap.ccsdk.sli.core.slipluginutils.lighty;
18
19 import io.lighty.core.controller.api.AbstractLightyModule;
20 import org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils;
21 import org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils;
22
23 /**
24  * The implementation of the {@link io.lighty.core.controller.api.LightyModule} that manages and provides services from
25  * the sliPluginUtils-provider artifact.
26  */
27 public class SliPluginUtilsModule extends AbstractLightyModule {
28
29     private SliPluginUtils sliPluginUtils;
30     private SliStringUtils sliStringUtils;
31
32     @Override
33     protected boolean initProcedure() {
34         this.sliPluginUtils = new SliPluginUtils();
35         this.sliStringUtils = new SliStringUtils();
36         return true;
37     }
38
39     @Override
40     protected boolean stopProcedure() {
41         return true;
42     }
43
44     public SliPluginUtils getSliPluginUtils() {
45         return this.sliPluginUtils;
46     }
47
48     public SliStringUtils getSliStringUtils() {
49         return sliStringUtils;
50     }
51 }