protected static function _class($config, $paths = []) {
		if (!$name = $config['adapter']) {
			$self = get_called_class();
			throw new ConfigException("No adapter set for configuration in class `{$self}`.");
		}
		if (!$class = static::_locate($paths, $name)) {
			$self = get_called_class();
			throw new ConfigException("Could not find adapter `{$name}` in class `{$self}`.");
		}
		return $class;
	}
protected static function _class($config, $paths = []) {
		if (!$name = $config['adapter']) {
			$self = get_called_class();
			throw new ConfigException("No adapter set for configuration in class `{$self}`.");
		}
		if (!$class = static::_locate($paths, $name)) {
			$self = get_called_class();
			throw new ConfigException("Could not find adapter `{$name}` in class `{$self}`.");
		}
		return $class;
	}
protected static function _class ( $ config , $ paths = [ ] ) { if ( ! $ name = $ config [ 'adapter' ] ) { $ self = get_called_class ( ) ; throw new ConfigException ( "No adapter set for configuration in class `{$self}`." ) ; } if ( ! $ class = static :: _locate ( $ paths , $ name ) ) { $ self = get_called_class ( ) ; throw new ConfigException ( "Could not find adapter `{$name}` in class `{$self}`." ) ; } return $ class ; }
Looks up an adapter by class by name.

@see lithium\core\libraries::locate()
@param array $config Configuration array of class to be found.
@param array $paths Optional array of search paths that will be checked.
@return string Returns a fully-namespaced class reference to the adapter class.
Looks up an adapter by class by name .