Save This Page
Home » activemq-parent-5.3.1-source-release » org.apache.activemq.util.osgi » [javadoc | source]
org.apache.activemq.util.osgi
public class: Activator [javadoc | source]
java.lang.Object
   org.apache.activemq.util.osgi.Activator

All Implemented Interfaces:
    org.osgi.framework.BundleActivator, org.osgi.framework.SynchronousBundleListener, ObjectFactory

An OSGi bundle activator for ActiveMQ which adapts the org.apache.activemq.util.FactoryFinder to the OSGi environment.
Method from org.apache.activemq.util.osgi.Activator Summary:
bundleChanged,   create,   register,   start,   stop,   unregister
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.activemq.util.osgi.Activator Detail:
 public  void bundleChanged(BundleEvent event) 
 public Object create(String path) throws IllegalAccessException, InstantiationException, IOException, ClassNotFoundException 
 protected  void register(Bundle bundle) 
 public synchronized  void start(BundleContext bundleContext) throws Exception 
 public synchronized  void stop(BundleContext bundleContext) throws Exception 
 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.