mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/asset/AssetTypesMgrImpl.java
public void registerRemoteBundleEvents()
        {
            final BundleContext context = m_BundleUtil.getBundleContext();
            // register to listen for bundle updated events.
            final Dictionary<String, Object> props = new Hashtable<String, Object>();
            final List<String> topics = new ArrayList<String>();
            topics.add(OSGiEventConstants.TOPIC_BUNDLE_UPDATED + RemoteConstants.REMOTE_TOPIC_SUFFIX);
            props.put(EventConstants.EVENT_TOPIC, topics);
            
            //register the event handler that listens for bundles being updated.
            m_Registration = context.registerService(EventHandler.class, this, props);
        }
/**
         * Method to register this event handler to listen for local bundle events.
         */
Method to register this event handler to listen for local bundle events.
Method to register this event handler to listen for local bundle events .
public void registerRemoteBundleEvents()
        {
            final BundleContext context = m_BundleUtil.getBundleContext();
            final Dictionary<String, Object> props = new Hashtable<String, Object>();
            final List<String> topics = new ArrayList<String>();
            topics.add(OSGiEventConstants.TOPIC_BUNDLE_UPDATED + RemoteConstants.REMOTE_TOPIC_SUFFIX);
            props.put(EventConstants.EVENT_TOPIC, topics);
            m_Registration = context.registerService(EventHandler.class, this, props);
        }
public void registerRemoteBundleEvents ( ) { final BundleContext context = m_BundleUtil . getBundleContext ( ) ; final Dictionary < String , Object > props = new Hashtable < String , Object > ( ) ; final List < String > topics = new ArrayList < String > ( ) ; topics . add ( OSGiEventConstants . TOPIC_BUNDLE_UPDATED + RemoteConstants . REMOTE_TOPIC_SUFFIX ) ; props . put ( EventConstants . EVENT_TOPIC , topics ) ; m_Registration = context . registerService ( EventHandler . class , this , props ) ; }
Method to register this event handler to listen for local bundle events.
Method to register this event handler to listen for local bundle events .
// register to listen for bundle updated events. //register the event handler that listens for bundles being updated.