Search in sources :

Example 1 with CatalogLocator

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;
}
Also used : CatalogLocator(mondrian.spi.CatalogLocator) ServletContextCatalogLocator(mondrian.spi.impl.ServletContextCatalogLocator) UrlRepositoryContentFinder(mondrian.server.UrlRepositoryContentFinder) RepositoryContentFinder(mondrian.server.RepositoryContentFinder)

Aggregations

RepositoryContentFinder (mondrian.server.RepositoryContentFinder)1 UrlRepositoryContentFinder (mondrian.server.UrlRepositoryContentFinder)1 CatalogLocator (mondrian.spi.CatalogLocator)1 ServletContextCatalogLocator (mondrian.spi.impl.ServletContextCatalogLocator)1