]> git.basschouten.com Git - openhab-addons.git/blob
69d9f6e5066382928695d3b0fff45e4b93473693
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.orvibo.internal;
14
15 import org.osgi.framework.BundleActivator;
16 import org.osgi.framework.BundleContext;
17
18 import com.github.tavalin.s20.S20Client;
19
20 /**
21  * Bundle activator for the Orvibo Binding.
22  *
23  * @author Daniel Walters - Initial contribution
24  *
25  */
26 public class OrviboActivator implements BundleActivator {
27
28     private S20Client s20Client;
29
30     @Override
31     public void start(BundleContext context) throws Exception {
32         s20Client = S20Client.getInstance();
33         s20Client.connect();
34     }
35
36     @Override
37     public void stop(BundleContext context) throws Exception {
38         s20Client.disconnect();
39     }
40 }