mil.dod.th.ose.core/src/mil/dod/th/ose/core/factory/impl/FactoryServiceContextImpl.java
private void handleRegistrationException(final ServiceReference<ComponentFactory> reference,
                final String productType, final FactoryInternal factory, final Exception cause)
        {
            m_Logging.error(cause, "Unable to register plug-in for product type [%s] from bundle [%s]", 
                    productType, reference.getBundle());
            //Cleanup any actions taken to register a factory.
            if (factory != null)
            {
                tryMakeFactoryUnavailable(factory);
                tryRemoveAllFactoryObjects(factory);
                tryCleanupFactory(factory);
            }
            tryRemoveFactory(productType);
            tryDisposeFactory(productType);
            tryUngetService(reference);
        }
/**
         * Clean up registration for the failed factory.
         * 
         * @param reference
         *      reference to the {@link ComponentFactory} that was used to create the {@link FactoryInternal}
         * @param productType
         *      product type of the plug-in that failed to register
         * @param factory
         *      factory to unregister or null if the factory was never created, but other clean up is needed
         * @param cause
         *      cause of the exception
         */
Clean up registration for the failed factory.

@param reference
reference to the  ComponentFactory that was used to create the  FactoryInternal
@param productType
product type of the plug-in that failed to register
@param factory
factory to unregister or null if the factory was never created, but other clean up is needed
@param cause
cause of the exception
Clean up registration for the failed factory . @param reference reference to the ComponentFactory that was used to create the FactoryInternal @param productType product type of the plug - in that failed to register @param factory factory to unregister or null if the factory was never created but other clean up is needed @param cause cause of the exception
private void handleRegistrationException(final ServiceReference<ComponentFactory> reference,
                final String productType, final FactoryInternal factory, final Exception cause)
        {
            m_Logging.error(cause, "Unable to register plug-in for product type [%s] from bundle [%s]", 
                    productType, reference.getBundle());
            if (factory != null)
            {
                tryMakeFactoryUnavailable(factory);
                tryRemoveAllFactoryObjects(factory);
                tryCleanupFactory(factory);
            }
            tryRemoveFactory(productType);
            tryDisposeFactory(productType);
            tryUngetService(reference);
        }
private void handleRegistrationException ( final ServiceReference < ComponentFactory > reference , final String productType , final FactoryInternal factory , final Exception cause ) { m_Logging . error ( cause , "Unable to register plug-in for product type [%s] from bundle [%s]" , productType , reference . getBundle ( ) ) ; if ( factory != null ) { tryMakeFactoryUnavailable ( factory ) ; tryRemoveAllFactoryObjects ( factory ) ; tryCleanupFactory ( factory ) ; } tryRemoveFactory ( productType ) ; tryDisposeFactory ( productType ) ; tryUngetService ( reference ) ; }
Clean up registration for the failed factory.
Clean up registration for the failed factory .
//Cleanup any actions taken to register a factory.