/** * Copyright (c) 2010-2016 by the respective copyright holders. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */ package org.openhab.persistence.sitewhere.internal; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * SiteWhere implementation of {@link BundleActivator}. * * @author Derek Adams */ public class SiteWhereActivator implements BundleActivator { /** Static logger instance */ private static Logger LOGGER = LoggerFactory.getLogger(SiteWhereActivator.class); /* * (non-Javadoc) * * @see * org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext * ) */ @Override public void start(BundleContext bc) throws Exception { LOGGER.info("SiteWhere persistence bundle has been started."); } /* * (non-Javadoc) * * @see * org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext) */ @Override public void stop(BundleContext context) throws Exception { LOGGER.info("SiteWhere persistence bundle has been stopped."); } }