mil.dod.th.ose.core/src/mil/dod/th/ose/core/factory/api/FactoryRegistry.java
public void removeObject(final UUID uuid)
    {
        m_Logging.info("Attempting to remove %s with UUID %s from registry", m_BaseType, uuid);

        final T itemRemoved = m_ControlObjects.remove(uuid);
        if (itemRemoved != null)
        {
            final ComponentInstance compInst = m_ComponentMap.remove(itemRemoved.getUuid());
            if (compInst == null)
            {
                m_Logging.error("Component instance for object with uuid [%s] "
                        + "could not be found, and cannot be disposed of properly.", itemRemoved.getUuid());
            }
            else
            {
                compInst.dispose();
            }
            
            //notify listeners that the object has been removed
            m_Callback.onRemovedObject(itemRemoved);
        }
    }
/**
     * Remove an object entry from the registry.
     * 
     * @param uuid
     *      UUID of the object to remove
     */
Remove an object entry from the registry.

@param uuid
UUID of the object to remove
Remove an object entry from the registry . @param uuid UUID of the object to remove
public void removeObject(final UUID uuid)
    {
        m_Logging.info("Attempting to remove %s with UUID %s from registry", m_BaseType, uuid);
        final T itemRemoved = m_ControlObjects.remove(uuid);
        if (itemRemoved != null)
        {
            final ComponentInstance compInst = m_ComponentMap.remove(itemRemoved.getUuid());
            if (compInst == null)
            {
                m_Logging.error("Component instance for object with uuid [%s] "
                        + "could not be found, and cannot be disposed of properly.", itemRemoved.getUuid());
            }
            else
            {
                compInst.dispose();
            }
            m_Callback.onRemovedObject(itemRemoved);
        }
    }
public void removeObject ( final UUID uuid ) { m_Logging . info ( "Attempting to remove %s with UUID %s from registry" , m_BaseType , uuid ) ; final T itemRemoved = m_ControlObjects . remove ( uuid ) ; if ( itemRemoved != null ) { final ComponentInstance compInst = m_ComponentMap . remove ( itemRemoved . getUuid ( ) ) ; if ( compInst == null ) { m_Logging . error ( "Component instance for object with uuid [%s] " + "could not be found, and cannot be disposed of properly." , itemRemoved . getUuid ( ) ) ; } else { compInst . dispose ( ) ; } m_Callback . onRemovedObject ( itemRemoved ) ; } }
Remove an object entry from the registry.
Remove an object entry from the registry .
//notify listeners that the object has been removed