mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/mp/CurrentMissionMgrImpl.java
public void registerForEvents()
        {
            final BundleContext context = m_BundleUtil.getBundleContext();
            
            //register for all program topics
            final Dictionary<String, Object> props = new Hashtable<String, Object>();
            final String[] topics = {Program.TOPIC_PREFIX + TOPIC_ALL, MissionProgramManager.TOPIC_PREFIX + TOPIC_ALL};
            props.put(EventConstants.EVENT_TOPIC, topics);
            
            
            final String filterString = String.format("(%s=*)", RemoteConstants.REMOTE_EVENT_PROP);
            props.put(EventConstants.EVENT_FILTER, filterString);
            
            //register for the events
            m_Registration = context.registerService(EventHandler.class, this, props);
        }
/**
         * Register for remote events which pertain to mission programs.
         */
Register for remote events which pertain to mission programs.
Register for remote events which pertain to mission programs .
public void registerForEvents()
        {
            final BundleContext context = m_BundleUtil.getBundleContext();
            final Dictionary<String, Object> props = new Hashtable<String, Object>();
            final String[] topics = {Program.TOPIC_PREFIX + TOPIC_ALL, MissionProgramManager.TOPIC_PREFIX + TOPIC_ALL};
            props.put(EventConstants.EVENT_TOPIC, topics);
            final String filterString = String.format("(%s=*)", RemoteConstants.REMOTE_EVENT_PROP);
            props.put(EventConstants.EVENT_FILTER, filterString);
            m_Registration = context.registerService(EventHandler.class, this, props);
        }
public void registerForEvents ( ) { final BundleContext context = m_BundleUtil . getBundleContext ( ) ; final Dictionary < String , Object > props = new Hashtable < String , Object > ( ) ; final String [ ] topics = { Program . TOPIC_PREFIX + TOPIC_ALL , MissionProgramManager . TOPIC_PREFIX + TOPIC_ALL } ; props . put ( EventConstants . EVENT_TOPIC , topics ) ; final String filterString = String . format ( "(%s=*)" , RemoteConstants . REMOTE_EVENT_PROP ) ; props . put ( EventConstants . EVENT_FILTER , filterString ) ; m_Registration = context . registerService ( EventHandler . class , this , props ) ; }
Register for remote events which pertain to mission programs.
Register for remote events which pertain to mission programs .
//register for all program topics //register for the events