com.javaranch.unittest.helper.sql.pool
Class SimpleContextFactory

java.lang.Object
  |
  +--com.javaranch.unittest.helper.sql.pool.SimpleContextFactory
All Implemented Interfaces:
javax.naming.spi.InitialContextFactory

public class SimpleContextFactory
extends java.lang.Object
implements javax.naming.spi.InitialContextFactory

Title: SimpleContextFactory

Description: A very SimpleContextFactory to assist in JNDI lookups of SimpleDataSource

Copyright: Copyright (c) 2002

- - - - - - - - - - - - - - - - -

You are welcome to do whatever you want to with this source file provided that you maintain this comment fragment (between the dashed lines). Modify it, change the package name, change the class name ... personal or business use ... sell it, share it ... add a copyright for the portions you add ...

My goal in giving this away and maintaining the copyright is to hopefully direct developers back to JavaRanch.

The original source can be found at JavaRanch

- - - - - - - - - - - - - - - - -

Company: JavaRanch


Constructor Summary
SimpleContextFactory()
           
 
Method Summary
 javax.naming.Context getInitialContext(java.util.Hashtable environment)
          Method getInitialContext Returns the SimpleContext for use.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleContextFactory

public SimpleContextFactory()
Method Detail

getInitialContext

public javax.naming.Context getInitialContext(java.util.Hashtable environment)
Method getInitialContext Returns the SimpleContext for use.
Specified by:
getInitialContext in interface javax.naming.spi.InitialContextFactory
Parameters:
environment -  
Returns: