KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mondrian > spi > impl > CatalogLocatorImpl


1 /*
2 // $Id: //open/mondrian/src/main/mondrian/spi/impl/CatalogLocatorImpl.java#4 $
3 // This software is subject to the terms of the Common Public License
4 // Agreement, available at the following URL:
5 // http://www.opensource.org/licenses/cpl.html.
6 // Copyright (C) 2005-2006 Julian Hyde
7 // All Rights Reserved.
8 // You must accept the terms of that agreement to use this software.
9 */

10 package mondrian.spi.impl;
11
12 import mondrian.spi.CatalogLocator;
13
14 /**
15  * CatalogLocator which returns the catalog URI unchanged.
16  *
17  * @author jhyde
18  * @version $Id: //open/mondrian/src/main/mondrian/spi/impl/CatalogLocatorImpl.java#4 $
19  * @since Dec 22, 2005
20  */

21 public class CatalogLocatorImpl implements CatalogLocator {
22     public static final CatalogLocator INSTANCE = new CatalogLocatorImpl();
23
24     public String JavaDoc locate(String JavaDoc catalogPath) {
25         return catalogPath;
26     }
27 }
28
29 // End CatalogLocatorImpl.java
30
Popular Tags