org.fusesource.fabric.activemq.Activator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fabric-activemq Show documentation
Show all versions of fabric-activemq Show documentation
FuseSource Fabric :: ActiveMQ
The newest version!
/**
* Copyright (C) 2010-2011, FuseSource Corp. All rights reserved.
*
* http://fusesource.com
*
* The software in this package is published under the terms of the
* CDDL license a copy of which has been included with this distribution
* in the license.txt file.
*/
package org.fusesource.fabric.activemq;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import java.util.concurrent.atomic.AtomicReference;
/**
*
*
*
* @author Hiram Chirino
*/
public class Activator implements BundleActivator {
public static final AtomicReference BUNDLE_CONTEXT = new AtomicReference();
public void start(BundleContext ctx) throws Exception {
BUNDLE_CONTEXT.set(ctx);
}
public void stop(BundleContext ctx) throws Exception {
BUNDLE_CONTEXT.set(null);
}
}