org.hsqldb.jdbc
Class jdbcDataSourceFactory

java.lang.Object
  extended byorg.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 creating jdbcDatasource object instances.

Author:
deforest@users

Constructor Summary
jdbcDataSourceFactory()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

jdbcDataSourceFactory

public jdbcDataSourceFactory()
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.

Specified by:
getObjectInstance in interface javax.naming.spi.ObjectFactory
Parameters:
obj - The reference information used in creating a jdbcDatasource object.
name - ignored
nameCtx - ignored
environment - ignored
Returns:
A newly created jdbcDataSource object; null if an object cannot be created.
Throws:
java.lang.Exception - never


Copyright © 2001 - 2004 HSQL Development Group. All Rights Reserved.