uk.org.ogsadai.dataresource.config
Class DataResourceConfigParser

java.lang.Object
  |
  +--uk.org.ogsadai.dataresource.config.DataResourceConfigParser

public class DataResourceConfigParser
extends java.lang.Object

This class parses a data resource configuration document and sets up key DAI objects including DAI properties and a ConnectionConfig configuration object.


Constructor Summary
DataResourceConfigParser(java.lang.String dataResourceConfigFile)
          Parse a data resource configuration document and setup DAI properties.
 
Method Summary
 ConnectionConfig getConnectionConfig()
          Return a ConnectionConfig object configured with data resource connection information and role mapper information.
 java.lang.String getConnectionManagerClass()
          Return name of class implementing connection between OGSA-DAI and the data resource.
 Properties getDataResourceProperties()
          Return the properties that were extracted from the data resource configuration document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataResourceConfigParser

public DataResourceConfigParser(java.lang.String dataResourceConfigFile)
                         throws CoreUserException
Parse a data resource configuration document and setup DAI properties.

Parameters:
dataResourceConfigFile - - location of data resource configuration document.
Throws:
CoreUserException - if dataResourceConfigFile is null or the information within it is invalid.
Method Detail

getConnectionConfig

public ConnectionConfig getConnectionConfig()
Return a ConnectionConfig object configured with data resource connection information and role mapper information.

Returns:
ConnectionConfig object.

getConnectionManagerClass

public java.lang.String getConnectionManagerClass()
Return name of class implementing connection between OGSA-DAI and the data resource.

Returns:
class name.

getDataResourceProperties

public Properties getDataResourceProperties()
Return the properties that were extracted from the data resource configuration document.

Returns:
reference to Properties object.