mil.dod.th.ose.config/src/mil/dod/th/ose/config/loading/impl/FactoryObjectTrackerCustomizer.java
private void sendLoadedEvent(final FactoryDescriptor factory)
    {
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(ConfigLoadingConstants.EVENT_PROP_PRODUCT_TYPE, factory.getProductType());

        if (m_ObjectConfig == null)
        {
            props.put(ConfigLoadingConstants.EVENT_PROP_ADDR_DESC, m_AddressConfig.getAddressDescription());

            final Event addressCompleteEvt = new Event(ConfigLoadingConstants.TOPIC_CONFIG_ADDRESS_LOADED_EVENT,
                props);
            m_EventAdmin.postEvent(addressCompleteEvt);
            m_Logging.debug("Sent address loaded event for %s", m_AddressConfig.getAddressDescription());
        }
        else
        {
            props.put(ConfigLoadingConstants.EVENT_PROP_OBJ_NAME, m_ObjectConfig.getName());

            final Event factoryObjsCompleteEvt = new Event(ConfigLoadingConstants.TOPIC_CONFIG_FACTORY_OBJ_LOADED_EVENT,
                props);
            m_EventAdmin.postEvent(factoryObjsCompleteEvt);
            m_Logging.debug("Sent factory object loaded event for %s", m_ObjectConfig.getName());
        }
    }
/**
     * Send event for notification of the factory object being created.
     * 
     * @param factory
     *      factory instance that is now available
     */
Send event for notification of the factory object being created.

@param factory
factory instance that is now available
Send event for notification of the factory object being created . @param factory factory instance that is now available
private void sendLoadedEvent(final FactoryDescriptor factory)
    {
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(ConfigLoadingConstants.EVENT_PROP_PRODUCT_TYPE, factory.getProductType());
        if (m_ObjectConfig == null)
        {
            props.put(ConfigLoadingConstants.EVENT_PROP_ADDR_DESC, m_AddressConfig.getAddressDescription());
            final Event addressCompleteEvt = new Event(ConfigLoadingConstants.TOPIC_CONFIG_ADDRESS_LOADED_EVENT,
                props);
            m_EventAdmin.postEvent(addressCompleteEvt);
            m_Logging.debug("Sent address loaded event for %s", m_AddressConfig.getAddressDescription());
        }
        else
        {
            props.put(ConfigLoadingConstants.EVENT_PROP_OBJ_NAME, m_ObjectConfig.getName());
            final Event factoryObjsCompleteEvt = new Event(ConfigLoadingConstants.TOPIC_CONFIG_FACTORY_OBJ_LOADED_EVENT,
                props);
            m_EventAdmin.postEvent(factoryObjsCompleteEvt);
            m_Logging.debug("Sent factory object loaded event for %s", m_ObjectConfig.getName());
        }
    }
private void sendLoadedEvent ( final FactoryDescriptor factory ) { final Map < String , Object > props = new HashMap < String , Object > ( ) ; props . put ( ConfigLoadingConstants . EVENT_PROP_PRODUCT_TYPE , factory . getProductType ( ) ) ; if ( m_ObjectConfig == null ) { props . put ( ConfigLoadingConstants . EVENT_PROP_ADDR_DESC , m_AddressConfig . getAddressDescription ( ) ) ; final Event addressCompleteEvt = new Event ( ConfigLoadingConstants . TOPIC_CONFIG_ADDRESS_LOADED_EVENT , props ) ; m_EventAdmin . postEvent ( addressCompleteEvt ) ; m_Logging . debug ( "Sent address loaded event for %s" , m_AddressConfig . getAddressDescription ( ) ) ; } else { props . put ( ConfigLoadingConstants . EVENT_PROP_OBJ_NAME , m_ObjectConfig . getName ( ) ) ; final Event factoryObjsCompleteEvt = new Event ( ConfigLoadingConstants . TOPIC_CONFIG_FACTORY_OBJ_LOADED_EVENT , props ) ; m_EventAdmin . postEvent ( factoryObjsCompleteEvt ) ; m_Logging . debug ( "Sent factory object loaded event for %s" , m_ObjectConfig . getName ( ) ) ; } }
Send event for notification of the factory object being created.
Send event for notification of the factory object being created .