def __get_stored_instances(self, factory_name):
        # type: (str) -> List[StoredInstance]
        """
        Retrieves the list of all stored instances objects corresponding to
        the given factory name

        :param factory_name: A factory name
        :return: All components instantiated from the given factory
        """
        with self.__instances_lock:
            return [
                stored_instance
                for stored_instance in self.__instances.values()
                if stored_instance.factory_name == factory_name
            ]
def __get_stored_instances ( self , factory_name ) : with self . __instances_lock : return [ stored_instance for stored_instance in self . __instances . values ( ) if stored_instance . factory_name == factory_name ]
Retrieves the list of all stored instances objects corresponding to
        the given factory name

        :param factory_name: A factory name
        :return: All components instantiated from the given factory