1 /*******************************************************************************
2 * Copyright (c) 2013 hangum.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the GNU Lesser Public License v2.1
5 * which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
9 * hangum - initial API and implementation
10 ******************************************************************************/
11 package com
.hangum
.tadpole
.sql
;
13 import org
.osgi
.framework
.BundleActivator
;
14 import org
.osgi
.framework
.BundleContext
;
16 public class Activator
implements BundleActivator
{
18 private static BundleContext context
;
20 static BundleContext
getContext() {
26 * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
28 public void start(BundleContext bundleContext
) throws Exception
{
29 Activator
.context
= bundleContext
;
34 * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
36 public void stop(BundleContext bundleContext
) throws Exception
{
37 Activator
.context
= null;