public final class DriverFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static ScriptellaDriver |
getDriver(java.lang.Class drvClass)
Creates a Scriptella Driver using specified class.
|
static ScriptellaDriver |
getDriver(java.lang.String driverName,
java.lang.ClassLoader loader)
Loads a driver specified by a full or a short name.
|
public static ScriptellaDriver getDriver(java.lang.String driverName, java.lang.ClassLoader loader) throws java.lang.ClassNotFoundException
The looking up procedure is the following:
driverName
is looked up.
driverName
- driver class short or full name.loader
- class loader to use when loading driver classes.java.lang.ClassNotFoundException
- if no drivers satisfy specified name.public static ScriptellaDriver getDriver(java.lang.Class drvClass)
If class is a Driver
JDBC Bridge
is used.
To be successfully instantiated the driver class must implement ScriptellaDriver
class
and has no-arg public constructor.
drvClass
- driver class.Copyright © Copyright 2006-2019 The Scriptella Project Team.