uk.org.ogsadai.dataresource
Class DataResourceManagerConfigImpl

java.lang.Object
  |
  +--uk.org.ogsadai.dataresource.DataResourceManagerConfigImpl
All Implemented Interfaces:
DataResourceManagerConfig

public class DataResourceManagerConfigImpl
extends java.lang.Object
implements DataResourceManagerConfig

This class represents a data resource. This includes a ConnectionManager to manage interaction with the data resource, a set of supported activities that can be executed by clients and Perform document schema.

The class is configured using OGSA-DAI data resource configuration and activity configuration documents.

Author:
The OGSA-DAI Team

Constructor Summary
DataResourceManagerConfigImpl(java.lang.String baseDir, java.lang.String dataResourceConfigFile, java.lang.String activityConfigFile)
          Given a data resource configuration file and an activity configuration file create a DataResourceManagerConfig object.
 
Method Summary
 ActivityFactory getActivityFactory()
          Return the ActivityFactory to use for creating Activity objects.
 ConnectionManager getConnectionManager()
          Returns the connection manager this manager is associated with.
 Properties getDataResourceManagerProperties()
          Return the properties of the configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataResourceManagerConfigImpl

public DataResourceManagerConfigImpl(java.lang.String baseDir,
                                     java.lang.String dataResourceConfigFile,
                                     java.lang.String activityConfigFile)
                              throws java.lang.IllegalArgumentException,
                                     CoreUserException,
                                     CoreSystemException,
                                     ConfigurationException
Given a data resource configuration file and an activity configuration file create a DataResourceManagerConfig object.

Parameters:
baseDir - - base directory to be used to create absolute file names if the given file names are relative (can be null).
dataResourceConfigFile - - absolute or relative path to data resource configuration file.
activityConfigFile - - absolute or relative path to activity configuration file.
Throws:
java.lang.IllegalArgumentException - if dataResourceConfigFile or activityConfig is null.
CoreUserException - if the data resource configuration file is invalid.
CoreUserException - if ConnectionManager class named in data resource configuration file cannot be found or other problematic information has been provided by the user.
CoreSystemException - if ConnectionManager class cannot be loaded or other problems arise.
ConfigurationException - if there is a problem with the activity configuration document.
CoreSystemException
Method Detail

getConnectionManager

public ConnectionManager getConnectionManager()
Returns the connection manager this manager is associated with.

Specified by:
getConnectionManager in interface DataResourceManagerConfig
Returns:
ConnectionManager - The connection manager.

getDataResourceManagerProperties

public Properties getDataResourceManagerProperties()
Description copied from interface: DataResourceManagerConfig
Return the properties of the configuration.

Specified by:
getDataResourceManagerProperties in interface DataResourceManagerConfig
Returns:
Properties object holding the properties for the DataResourceManager
See Also:
DataResourceManagerConfig.getDataResourceManagerProperties()

getActivityFactory

public ActivityFactory getActivityFactory()
Description copied from interface: DataResourceManagerConfig
Return the ActivityFactory to use for creating Activity objects.

Specified by:
getActivityFactory in interface DataResourceManagerConfig
Returns:
ActivityFactory