mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/advanced/configuration/SystemMetaTypeMgrImpl.java
public void registerBundleEvents()
        {
            final BundleContext context = m_BundleUtil.getBundleContext();
            
            // register to listen for bundles removed/updated or have their metatype information updated
            final Dictionary<String, Object> props = new Hashtable<String, Object>();
            final String[] topics = new String[]
            {
                RemoteMetatypeConstants.TOPIC_METATYPE_INFORMATION_AVAILABLE + RemoteConstants.REMOTE_TOPIC_SUFFIX,
                BundleMgr.TOPIC_BUNDLE_INFO_REMOVED,
                BundleMgr.TOPIC_BUNDLE_INFO_RECEIVED
            };
            props.put(EventConstants.EVENT_TOPIC, topics);
            
            //register the event handler that listens for bundle events.
            m_Registration = context.registerService(EventHandler.class, this, props);
        }
/**
         * Registers the listener to listen for all bundle events posted.
         */
Registers the listener to listen for all bundle events posted.
Registers the listener to listen for all bundle events posted .
public void registerBundleEvents()
        {
            final BundleContext context = m_BundleUtil.getBundleContext();
            final Dictionary<String, Object> props = new Hashtable<String, Object>();
            final String[] topics = new String[]
            {
                RemoteMetatypeConstants.TOPIC_METATYPE_INFORMATION_AVAILABLE + RemoteConstants.REMOTE_TOPIC_SUFFIX,
                BundleMgr.TOPIC_BUNDLE_INFO_REMOVED,
                BundleMgr.TOPIC_BUNDLE_INFO_RECEIVED
            };
            props.put(EventConstants.EVENT_TOPIC, topics);
            m_Registration = context.registerService(EventHandler.class, this, props);
        }
public void registerBundleEvents ( ) { final BundleContext context = m_BundleUtil . getBundleContext ( ) ; final Dictionary < String , Object > props = new Hashtable < String , Object > ( ) ; final String [ ] topics = new String [ ] { RemoteMetatypeConstants . TOPIC_METATYPE_INFORMATION_AVAILABLE + RemoteConstants . REMOTE_TOPIC_SUFFIX , BundleMgr . TOPIC_BUNDLE_INFO_REMOVED , BundleMgr . TOPIC_BUNDLE_INFO_RECEIVED } ; props . put ( EventConstants . EVENT_TOPIC , topics ) ; m_Registration = context . registerService ( EventHandler . class , this , props ) ; }
Registers the listener to listen for all bundle events posted.
Registers the listener to listen for all bundle events posted .
// register to listen for bundles removed/updated or have their metatype information updated //register the event handler that listens for bundle events.