Package mondrian.spi.impl
Class JndiDataSourceResolver
- java.lang.Object
-
- mondrian.spi.impl.JndiDataSourceResolver
-
- All Implemented Interfaces:
DataSourceResolver
public class JndiDataSourceResolver extends Object implements DataSourceResolver
Implementation ofDataSourceResolver
that looks up a data source using JNDI.- Author:
- jhyde
-
-
Constructor Summary
Constructors Constructor Description JndiDataSourceResolver()
Public constructor, required for plugin instantiation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSource
lookup(String dataSourceName)
Converts a data source name to a JDBC data source object.
-
-
-
Method Detail
-
lookup
public DataSource lookup(String dataSourceName) throws NamingException
Description copied from interface:DataSourceResolver
Converts a data source name to a JDBC data source object.- Specified by:
lookup
in interfaceDataSourceResolver
- Parameters:
dataSourceName
- Data source name- Returns:
- JDBC data source, or null if not found
- Throws:
NamingException
-
-