com.simba.dsi.core.impl
Class DSIDriverFactory

java.lang.Object
  extended by com.simba.dsi.core.impl.DSIDriverFactory

public class DSIDriverFactory
extends java.lang.Object

Implementation of a factory for creating driver objects.


Constructor Summary
DSIDriverFactory()
           
 
Method Summary
static IDriver createDriver()
          Factory method to construct IDrivers.
static void setDriverClassName(java.lang.String driverClassName)
          Set the class name of the concrete implementation of IDriver to use when instantiating this DriverFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSIDriverFactory

public DSIDriverFactory()
Method Detail

createDriver

public static IDriver createDriver()
                            throws com.simba.support.exceptions.ErrorException
Factory method to construct IDrivers.

Returns:
An IDriver instance.
Throws:
com.simba.support.exceptions.ErrorException - If an error occurs.

setDriverClassName

public static void setDriverClassName(java.lang.String driverClassName)
Set the class name of the concrete implementation of IDriver to use when instantiating this DriverFactory. Will only allow the class to be set once.

Parameters:
driverClassName - A String representing the fully qualified class name of implementation of the IDriver.


Copyright © 2006-2014 Simba Technologies Incorporated. All Rights Reserved.