public function getClassLoaders(string $class)
    {
        $parts = explode("\\", $class);
        $result = array();
        $ref = &$this->root_namespace;
        $sub_ns = "";
        foreach ($parts as $part)
        {
            foreach ($ref['loaders'] as $loader)
                $result[] = $loader;

            if (!isset($ref['sub_ns'][$part]))
                break;

            $ref = &$ref['sub_ns'][$part];
        }

        // Reverse the result, because the last one is the most specific
        // namespace, which would be the one to try first.
        return array_reverse($result);
    }