mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/advanced/configuration/SystemConfigurationMgrImpl.java
public void registerControllerEvents()
        {
            final BundleContext context = m_BundleUtil.getBundleContext();
            // register to listen for controller removed events.
            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.ConfigAdmin.toString(),
                RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
                ConfigAdminMessageType.CreateFactoryConfigurationResponse.toString());
            props.put(EventConstants.EVENT_FILTER, filterString);
            
            //register the event handler that listens for controllers being removed.
            m_Registration = context.registerService(EventHandler.class, this, props);
        }
/**
         * Method that registers all configuration admin events to listen for.
         */
Method that registers all configuration admin events to listen for.
Method that registers all configuration admin events to listen for .
public void registerControllerEvents()
        {
            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.ConfigAdmin.toString(),
                RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
                ConfigAdminMessageType.CreateFactoryConfigurationResponse.toString());
            props.put(EventConstants.EVENT_FILTER, filterString);
            m_Registration = context.registerService(EventHandler.class, this, props);
        }
public void registerControllerEvents ( ) { 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 . ConfigAdmin . toString ( ) , RemoteConstants . EVENT_PROP_MESSAGE_TYPE , ConfigAdminMessageType . CreateFactoryConfigurationResponse . toString ( ) ) ; props . put ( EventConstants . EVENT_FILTER , filterString ) ; m_Registration = context . registerService ( EventHandler . class , this , props ) ; }
Method that registers all configuration admin events to listen for.
Method that registers all configuration admin events to listen for .
// register to listen for controller removed events. //register the event handler that listens for controllers being removed.