Class Activator

  • All Implemented Interfaces:
    EventListener, FactoryFinder.ObjectFactory, org.osgi.framework.BundleActivator, org.osgi.framework.BundleListener, org.osgi.framework.SynchronousBundleListener

    public class Activator
    extends Object
    implements org.osgi.framework.BundleActivator, org.osgi.framework.SynchronousBundleListener, FactoryFinder.ObjectFactory
    An OSGi bundle activator for ActiveMQ which adapts the FactoryFinder to the OSGi environment.
    • Constructor Detail

      • Activator

        public Activator()
    • Method Detail

      • start

        public void start​(org.osgi.framework.BundleContext bundleContext)
                   throws Exception
        Specified by:
        start in interface org.osgi.framework.BundleActivator
      • stop

        public void stop​(org.osgi.framework.BundleContext bundleContext)
                  throws Exception
        Specified by:
        stop in interface org.osgi.framework.BundleActivator
      • bundleChanged

        public void bundleChanged​(org.osgi.framework.BundleEvent event)
        Specified by:
        bundleChanged in interface org.osgi.framework.BundleListener
      • register

        protected void register​(org.osgi.framework.Bundle bundle)
      • unregister

        protected void unregister​(long bundleId)
        When bundles unload.. we remove them thier cached Class entries from the serviceCache. Future service lookups for the service will fail. TODO: consider a way to get the Broker release any references to instances of the service.
        bundleId -