org.yawlfoundation.yawl.resourcing.datastore.orgdata
Class DataSourceFactory

java.lang.Object
  extended by org.yawlfoundation.yawl.resourcing.datastore.orgdata.DataSourceFactory

public class DataSourceFactory
extends Object

This factory class creates and instantiates instances of the various data source classes found in this package.

Author:
Michael Adams v0.1, 10/07/2007

Constructor Summary
DataSourceFactory()
           
 
Method Summary
static Set getDataSources()
          Constructs and returns a list of instantiated DataSource objects, one for each of the different DataSource classes available in this package
static DataSource getInstance(String dbName)
          Instantiates a class of the name passed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceFactory

public DataSourceFactory()
Method Detail

getInstance

public static DataSource getInstance(String dbName)
Instantiates a class of the name passed.

Parameters:
dbName - the name of the class to instantiate
Returns:
the instantiated class, or null if there was a problem
Precondition:
'dbName' must be the name of a class in this package

getDataSources

public static Set getDataSources()
Constructs and returns a list of instantiated DataSource objects, one for each of the different DataSource classes available in this package

Returns:
a List of instantiated DataSource objects


Copyright © 2004-2012 The YAWL Foundation.