mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/comms/CommsMgrImpl.java
public void registerForEvents()
        {
            final BundleContext context = m_BundleUtil.getBundleContext();
            
            // register to listen for Event Admin send event messages
            final Dictionary<String, Object> props = new Hashtable<String, Object>();
            
            //All event topics of interest
            final String[] topics = {LinkLayer.TOPIC_PREFIX + ALL_STRING, 
                FactoryDescriptor.TOPIC_PREFIX + ALL_STRING};
            props.put(EventConstants.EVENT_TOPIC, topics);
            final String filter = String.format("(%s=*)", RemoteConstants.REMOTE_EVENT_PROP);
            props.put(EventConstants.EVENT_FILTER, filter);
            
            //register the event handler that listens for event admin 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>();
            final String[] topics = {LinkLayer.TOPIC_PREFIX + ALL_STRING, 
                FactoryDescriptor.TOPIC_PREFIX + ALL_STRING};
            props.put(EventConstants.EVENT_TOPIC, topics);
            final String filter = String.format("(%s=*)", RemoteConstants.REMOTE_EVENT_PROP);
            props.put(EventConstants.EVENT_FILTER, filter);
            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 = { LinkLayer . TOPIC_PREFIX + ALL_STRING , FactoryDescriptor . TOPIC_PREFIX + ALL_STRING } ; props . put ( EventConstants . EVENT_TOPIC , topics ) ; final String filter = String . format ( "(%s=*)" , RemoteConstants . REMOTE_EVENT_PROP ) ; props . put ( EventConstants . EVENT_FILTER , filter ) ; 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 for Event Admin send event messages //All event topics of interest //register the event handler that listens for event admin responses