mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/controller/ObservationCountMgrImpl.java
public void registerForEvents()
        {
            final BundleContext context = m_BundleUtil.getBundleContext();
            // register to listen for observation creted events.
            final Dictionary<String, Object> props = new Hashtable<String, Object>();
            //All event topics of interest
            final String[] topics = 
            {
                ObservationStore.TOPIC_OBSERVATION_PERSISTED,
                ObservationStore.TOPIC_OBSERVATION_MERGED
            };
            props.put(EventConstants.EVENT_TOPIC, topics);
            
            //register the event handler that listens for observation created events.
            m_Registration = context.registerService(EventHandler.class, this, props);
        }
/**
         * Method to register events to listen for..
         */
Method to register events to listen for
Method to register events to listen for
public void registerForEvents()
        {
            final BundleContext context = m_BundleUtil.getBundleContext();
            final Dictionary<String, Object> props = new Hashtable<String, Object>();
            final String[] topics = 
            {
                ObservationStore.TOPIC_OBSERVATION_PERSISTED,
                ObservationStore.TOPIC_OBSERVATION_MERGED
            };
            props.put(EventConstants.EVENT_TOPIC, topics);
            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 = { ObservationStore . TOPIC_OBSERVATION_PERSISTED , ObservationStore . TOPIC_OBSERVATION_MERGED } ; props . put ( EventConstants . EVENT_TOPIC , topics ) ; m_Registration = context . registerService ( EventHandler . class , this , props ) ; }
Method to register events to listen for..
Method to register events to listen for ..
// register to listen for observation creted events. //All event topics of interest //register the event handler that listens for observation created events.