code/class/registry/registry.php
public function setLocator($class, $locator)
    {
        if(!false == $pos = strrpos($class, '\\'))
        {
            $namespace = substr($class, 0, $pos);
            $this->_namespaces[$namespace] = $locator;
        }

        return $this;
    }
public function setLocator($class, $locator)
    {
        if(!false == $pos = strrpos($class, '\\'))
        {
            $namespace = substr($class, 0, $pos);
            $this->_namespaces[$namespace] = $locator;
        }

        return $this;
    }
public function setLocator ( $ class , $ locator ) { if ( ! false == $ pos = strrpos ( $ class , '\\' ) ) { $ namespace = substr ( $ class , 0 , $ pos ) ; $ this -> _namespaces [ $ namespace ] = $ locator ; } return $ this ; }
Set a specific locator based on a class namespace

@return  ClassRegistry
Set a specific locator based on a class namespace