mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/mp/MissionProgramMgrImpl.java
public void registerForEvents()
        {
            final BundleContext context = m_BundleUtil.getBundleContext();

            // register to listen to the mission programming get templates response
            final Dictionary<String, Object> props = new Hashtable<String, Object>();
            props.put(EventConstants.EVENT_TOPIC, RemoteConstants.TOPIC_MESSAGE_RECEIVED);
            final String filterString = String.format("(&(%s=%s)(%s=%s))",
                RemoteConstants.EVENT_PROP_NAMESPACE, Namespace.MissionProgramming.toString(),
                RemoteConstants.EVENT_PROP_MESSAGE_TYPE, MissionProgrammingMessageType.GetTemplatesResponse.toString());
            props.put(EventConstants.EVENT_FILTER, filterString);
            
            //register the event handler that listens for get templates responses
            m_Registration = context.registerService(EventHandler.class, this, props);
        }
/**
         * Method to register this event handler for the message received topic.
         */
Method to register this event handler for the message received topic.
Method to register this event handler for the message received topic .
public void registerForEvents()
        {
            final BundleContext context = m_BundleUtil.getBundleContext();
            final Dictionary<String, Object> props = new Hashtable<String, Object>();
            props.put(EventConstants.EVENT_TOPIC, RemoteConstants.TOPIC_MESSAGE_RECEIVED);
            final String filterString = String.format("(&(%s=%s)(%s=%s))",
                RemoteConstants.EVENT_PROP_NAMESPACE, Namespace.MissionProgramming.toString(),
                RemoteConstants.EVENT_PROP_MESSAGE_TYPE, MissionProgrammingMessageType.GetTemplatesResponse.toString());
            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 > ( ) ; props . put ( EventConstants . EVENT_TOPIC , RemoteConstants . TOPIC_MESSAGE_RECEIVED ) ; final String filterString = String . format ( "(&(%s=%s)(%s=%s))" , RemoteConstants . EVENT_PROP_NAMESPACE , Namespace . MissionProgramming . toString ( ) , RemoteConstants . EVENT_PROP_MESSAGE_TYPE , MissionProgrammingMessageType . GetTemplatesResponse . toString ( ) ) ; props . put ( EventConstants . EVENT_FILTER , filterString ) ; m_Registration = context . registerService ( EventHandler . class , this , props ) ; }
Method to register this event handler for the message received topic.
Method to register this event handler for the message received topic .
// register to listen to the mission programming get templates response //register the event handler that listens for get templates responses