mil.dod.th.ose.core/src/mil/dod/th/ose/core/factory/impl/FactoryServiceContextImpl.java
private void tryRemoveAllFactoryObjects(final FactoryInternal factory)
        {
            for (FactoryObjectInternal object: getRegistry().getObjectsByProductType(factory.getProductType()))
            {
                try
                {
                    getRegistry().removeObject(object.getUuid());
                    factory.dispose(object.getProxy()); 
                }
                catch (final Exception e)
                {
                    m_Logging.error(e, "Unable to remove all factory objects of product type [%s]", 
                            factory.getProductType());
                }
            }
        }
/**
         * Attempts to remove all factory objects associate with the specified factory. This method will catch and log
         * any exception thrown.
         * 
         * @param factory
         *      The factory that should have all associated factory objects removed.
         */
Attempts to remove all factory objects associate with the specified factory. This method will catch and log
any exception thrown.

@param factory
The factory that should have all associated factory objects removed.
Attempts to remove all factory objects associate with the specified factory . This method will catch and log any exception thrown . @param factory The factory that should have all associated factory objects removed .
private void tryRemoveAllFactoryObjects(final FactoryInternal factory)
        {
            for (FactoryObjectInternal object: getRegistry().getObjectsByProductType(factory.getProductType()))
            {
                try
                {
                    getRegistry().removeObject(object.getUuid());
                    factory.dispose(object.getProxy()); 
                }
                catch (final Exception e)
                {
                    m_Logging.error(e, "Unable to remove all factory objects of product type [%s]", 
                            factory.getProductType());
                }
            }
        }
private void tryRemoveAllFactoryObjects ( final FactoryInternal factory ) { for ( FactoryObjectInternal object : getRegistry ( ) . getObjectsByProductType ( factory . getProductType ( ) ) ) { try { getRegistry ( ) . removeObject ( object . getUuid ( ) ) ; factory . dispose ( object . getProxy ( ) ) ; } catch ( final Exception e ) { m_Logging . error ( e , "Unable to remove all factory objects of product type [%s]" , factory . getProductType ( ) ) ; } } }
Attempts to remove all factory objects associate with the specified factory.
Attempts to remove all factory objects associate with the specified factory .