org.objectweb.cjdbc.driver
Class DataSourceFactory
java.lang.Object
org.objectweb.cjdbc.driver.DataSourceFactory
- All Implemented Interfaces:
- javax.naming.spi.ObjectFactory
- public class DataSourceFactory
- extends java.lang.Object
- implements javax.naming.spi.ObjectFactory
DataSource factory for to implement Referenceable.
The factory serves for the DataSource,PooledDataSource,
and XADataSource classes.
- Version:
- 1.0
- Author:
- Marek Prochazka
|
Method Summary |
java.lang.Object |
getObjectInstance(java.lang.Object objRef,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable env)
Gets an instance of the requested DataSource object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dataSourceClassName
protected final java.lang.String dataSourceClassName
- DataSource classnames.
- See Also:
- Constant Field Values
poolDataSourceName
protected final java.lang.String poolDataSourceName
- See Also:
- Constant Field Values
xaDataSourceName
protected final java.lang.String xaDataSourceName
- See Also:
- Constant Field Values
DataSourceFactory
public DataSourceFactory()
getObjectInstance
public java.lang.Object getObjectInstance(java.lang.Object objRef,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable env)
throws java.lang.Exception
- Gets an instance of the requested
DataSource object.
- Specified by:
getObjectInstance in interface javax.naming.spi.ObjectFactory
- Parameters:
objRef - object containing location or reference information that is
used to create an object instance (could be null).name - name of this object relative to specified nameCtx
(could be null).nameCtx - name context (could ne null if the default initial context
is used).env - environment to use (could be null if default is used)
- Returns:
- a newly created instance of C-JDBC DataSource,
null
if an error occurred.
- Throws:
java.lang.Exception - if an error occurs when creating the object instance.
Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.