org.openi.mondrian.datasource
Class DataSourceConfig
java.lang.Object
org.openi.mondrian.datasource.DataSourceConfig
public class DataSourceConfig
- extends java.lang.Object
- Author:
- Uddhab Pant
This class is responsible for:
- transforms mondrian datasources.xml with xsl and initilizes
datasources list using org.openi.xml.BeanStorage.
- transforms xml generated by BeanStorage for datasources list with xsl and
saves to a file compatible with mondrian datasources.xml.
|
Constructor Summary |
DataSourceConfig(java.lang.String mondrianXslFile,
java.lang.String datasourceXmlFile)
c'tor initializes mondrian datasources.xml file and
xsl file. |
|
Method Summary |
java.util.List |
getDataSources()
Initializes datasources from mondrian datasources.xml using xstream and xsl |
void |
setDataSources(java.util.List datasources)
Saves datasources to mondrian datasources.xml using xstream and xsl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSourceConfig
public DataSourceConfig(java.lang.String mondrianXslFile,
java.lang.String datasourceXmlFile)
- c'tor initializes mondrian datasources.xml file and
xsl file.
- Parameters:
mondrianXslFile - StringdatasourceXmlFile - String
getDataSources
public java.util.List getDataSources()
throws javax.xml.transform.TransformerException,
java.io.IOException
- Initializes datasources from mondrian datasources.xml using xstream and xsl
- Returns:
- List
- Throws:
javax.xml.transform.TransformerException
java.io.IOException
setDataSources
public void setDataSources(java.util.List datasources)
throws javax.xml.transform.TransformerException,
java.io.IOException
- Saves datasources to mondrian datasources.xml using xstream and xsl
- Parameters:
datasources - List
- Throws:
javax.xml.transform.TransformerException
java.io.IOException