Package org.hsqldb.jdbc
Class jdbcDataSourceFactory
- java.lang.Object
-
- org.hsqldb.jdbc.jdbcDataSourceFactory
-
- All Implemented Interfaces:
javax.naming.spi.ObjectFactory
public class jdbcDataSourceFactory extends java.lang.Object implements javax.naming.spi.ObjectFactory
A JNDI ObjectFactory for creatingjdbcDatasource
object instances.- Author:
- deforest@users
-
-
Constructor Summary
Constructors Constructor Description jdbcDataSourceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable environment)
Creates a jdbcDatasource object using the location or reference information specified.
-
-
-
Method Detail
-
getObjectInstance
public java.lang.Object getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable environment) throws java.lang.Exception
Creates a jdbcDatasource object using the location or reference information specified.The Reference object should support the properties, database, user, password.
- Specified by:
getObjectInstance
in interfacejavax.naming.spi.ObjectFactory
- Parameters:
obj
- The reference information used in creating a jdbcDatasource object.name
- ignorednameCtx
- ignoredenvironment
- ignored- Returns:
- A newly created jdbcDataSource object; null if an object cannot be created.
- Throws:
java.lang.Exception
- never
-
-