/* * Copyright (c) 2010 Object Management Group (ARM metamodel) * Copyright (c) 2010-2011 United States Government as represented by the Administrator for The National Aeronautics and Space Administration. All Rights Reserved. (generated models) */ package net.certware.argument.arm.navigator; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; /** * Navigator bundle activator. * @author mrb */ public class Activator implements BundleActivator { /** bundle context */ private static BundleContext context; /** * Gets the bundle context. * @return bundle context */ static BundleContext getContext() { return context; } /* * (non-Javadoc) * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext) */ public void start(BundleContext bundleContext) throws Exception { Activator.context = bundleContext; } /* * (non-Javadoc) * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext) */ public void stop(BundleContext bundleContext) throws Exception { Activator.context = null; } }