mil.dod.th.ose.config/src/mil/dod/th/ose/config/event/ConfigurationAdminEventBridge.java
private void postConfigurationEvent(final ConfigurationEvent configEvent)
    {
        //Create the properties map to be posted with the event.
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(ConfigurationEventConstants.EVENT_PROP_PID, configEvent.getPid());
        props.put(ConfigurationEventConstants.EVENT_PROP_FACTORY_PID, configEvent.getFactoryPid());
        //Retrieve inner service reference properties.
        final ServiceReference<ConfigurationAdmin> serviceReference = configEvent.getReference();
        props.put(ConfigurationEventConstants.EVENT_PROP_SERVICE_REFERENCE, serviceReference);
        props.put(ConfigurationEventConstants.EVENT_PROP_SERVICE_ID, 
                serviceReference.getProperty(ConfigurationEventConstants.EVENT_PROP_SERVICE_ID));
        props.put(ConfigurationEventConstants.EVENT_PROP_SERVICE_OBJECT_CLASS, 
                serviceReference.getProperty(ConfigurationEventConstants.EVENT_PROP_SERVICE_OBJECT_CLASS));
        props.put(ConfigurationEventConstants.EVENT_PROP_SERVICE_PID, 
                serviceReference.getProperty(ConfigurationEventConstants.EVENT_PROP_SERVICE_PID));
        
        final int eventType = configEvent.getType();
        String topic = null;
        //Convert the enumeration integer value to a string topic that can be used in a standard event.
        switch (eventType)
        {
            case ConfigurationEvent.CM_DELETED:
                topic = ConfigurationEventConstants.TOPIC_CONFIGURATION_DELETED_EVENT;
                break;
            case ConfigurationEvent.CM_UPDATED:
                topic = ConfigurationEventConstants.TOPIC_CONFIGURATION_UPDATED_EVENT;
                break;
            case ConfigurationEvent.CM_LOCATION_CHANGED:
                topic = ConfigurationEventConstants.TOPIC_CONFIGURATION_LOCATION_EVENT;
                break;
            default:
                throw new IllegalArgumentException("Invalid configuration event topic!");
        }

        //Post the event to the event admin service. 
        m_EventAdmin.postEvent(new Event(topic, props));
    }
/**
     * Method that takes a configuration event, converts it to an event admin compatible event, and then posts that
     * event to the event admin service.
     * 
     * @param configEvent
     *          the {@link ConfigurationEvent} to be converted and posted to the {@link EventAdmin} service.
     */
Method that takes a configuration event, converts it to an event admin compatible event, and then posts that
event to the event admin service.

@param configEvent
the  ConfigurationEvent to be converted and posted to the  EventAdmin service.
Method that takes a configuration event converts it to an event admin compatible event and then posts that event to the event admin service . @param configEvent the ConfigurationEvent to be converted and posted to the EventAdmin service .
private void postConfigurationEvent(final ConfigurationEvent configEvent)
    {
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(ConfigurationEventConstants.EVENT_PROP_PID, configEvent.getPid());
        props.put(ConfigurationEventConstants.EVENT_PROP_FACTORY_PID, configEvent.getFactoryPid());
        final ServiceReference<ConfigurationAdmin> serviceReference = configEvent.getReference();
        props.put(ConfigurationEventConstants.EVENT_PROP_SERVICE_REFERENCE, serviceReference);
        props.put(ConfigurationEventConstants.EVENT_PROP_SERVICE_ID, 
                serviceReference.getProperty(ConfigurationEventConstants.EVENT_PROP_SERVICE_ID));
        props.put(ConfigurationEventConstants.EVENT_PROP_SERVICE_OBJECT_CLASS, 
                serviceReference.getProperty(ConfigurationEventConstants.EVENT_PROP_SERVICE_OBJECT_CLASS));
        props.put(ConfigurationEventConstants.EVENT_PROP_SERVICE_PID, 
                serviceReference.getProperty(ConfigurationEventConstants.EVENT_PROP_SERVICE_PID));
        final int eventType = configEvent.getType();
        String topic = null;
        switch (eventType)
        {
            case ConfigurationEvent.CM_DELETED:
                topic = ConfigurationEventConstants.TOPIC_CONFIGURATION_DELETED_EVENT;
                break;
            case ConfigurationEvent.CM_UPDATED:
                topic = ConfigurationEventConstants.TOPIC_CONFIGURATION_UPDATED_EVENT;
                break;
            case ConfigurationEvent.CM_LOCATION_CHANGED:
                topic = ConfigurationEventConstants.TOPIC_CONFIGURATION_LOCATION_EVENT;
                break;
            default:
                throw new IllegalArgumentException("Invalid configuration event topic!");
        }
        m_EventAdmin.postEvent(new Event(topic, props));
    }
private void postConfigurationEvent ( final ConfigurationEvent configEvent ) { final Map < String , Object > props = new HashMap < String , Object > ( ) ; props . put ( ConfigurationEventConstants . EVENT_PROP_PID , configEvent . getPid ( ) ) ; props . put ( ConfigurationEventConstants . EVENT_PROP_FACTORY_PID , configEvent . getFactoryPid ( ) ) ; final ServiceReference < ConfigurationAdmin > serviceReference = configEvent . getReference ( ) ; props . put ( ConfigurationEventConstants . EVENT_PROP_SERVICE_REFERENCE , serviceReference ) ; props . put ( ConfigurationEventConstants . EVENT_PROP_SERVICE_ID , serviceReference . getProperty ( ConfigurationEventConstants . EVENT_PROP_SERVICE_ID ) ) ; props . put ( ConfigurationEventConstants . EVENT_PROP_SERVICE_OBJECT_CLASS , serviceReference . getProperty ( ConfigurationEventConstants . EVENT_PROP_SERVICE_OBJECT_CLASS ) ) ; props . put ( ConfigurationEventConstants . EVENT_PROP_SERVICE_PID , serviceReference . getProperty ( ConfigurationEventConstants . EVENT_PROP_SERVICE_PID ) ) ; final int eventType = configEvent . getType ( ) ; String topic = null ; switch ( eventType ) { case ConfigurationEvent . CM_DELETED : topic = ConfigurationEventConstants . TOPIC_CONFIGURATION_DELETED_EVENT ; break ; case ConfigurationEvent . CM_UPDATED : topic = ConfigurationEventConstants . TOPIC_CONFIGURATION_UPDATED_EVENT ; break ; case ConfigurationEvent . CM_LOCATION_CHANGED : topic = ConfigurationEventConstants . TOPIC_CONFIGURATION_LOCATION_EVENT ; break ; default : throw new IllegalArgumentException ( "Invalid configuration event topic!" ) ; } m_EventAdmin . postEvent ( new Event ( topic , props ) ) ; }
Method that takes a configuration event, converts it to an event admin compatible event, and then posts that
 event to the event admin service.
Method that takes a configuration event converts it to an event admin compatible event and then posts that event to the event admin service .
//Create the properties map to be posted with the event. //Retrieve inner service reference properties. //Convert the enumeration integer value to a string topic that can be used in a standard event. //Post the event to the event admin service. 