use of com.netflix.metacat.common.server.connectors.exception.CatalogNotFoundException in project metacat by Netflix.
the class ConnectorManager method getConnectorFactory.
/**
* Returns the connector factory for the given <code>catalogName</code>.
*
* @param catalogName catalog name
* @return Returns the connector factory for the given <code>catalogName</code>
*/
private ConnectorFactory getConnectorFactory(final String catalogName) {
Preconditions.checkNotNull(catalogName, "catalogName is null");
final ConnectorFactory result = connectorFactories.get(catalogName);
if (result == null) {
throw new CatalogNotFoundException(catalogName);
}
return result;
}
Aggregations