use of mondrian.spi.CatalogLocator in project mondrian by pentaho.
the class MondrianXmlaServlet method createConnectionFactory.
@Override
protected XmlaHandler.ConnectionFactory createConnectionFactory(ServletConfig servletConfig) throws ServletException {
if (server == null) {
// A derived class can alter how the calalog locator object is
// created.
CatalogLocator catalogLocator = makeCatalogLocator(servletConfig);
String dataSources = makeDataSourcesUrl(servletConfig);
RepositoryContentFinder contentFinder = makeContentFinder(dataSources);
server = MondrianServer.createWithRepository(contentFinder, catalogLocator);
}
return (XmlaHandler.ConnectionFactory) server;
}
Aggregations