com.nonesole.persistence.connectionpool
Class ConnectionPoolContext

java.lang.Object
  extended by com.nonesole.persistence.connectionpool.ConnectionPoolContext

public class ConnectionPoolContext
extends java.lang.Object

Context of Connection Pool

Version:
1.0 - build in 2009-07-08
Author:
JACK LEE

Method Summary
 javax.sql.DataSource getDataSource(java.lang.String name)
          Return datasource
 javax.naming.Context getInitialContext()
          Return the only one context.
static ConnectionPoolContext getInstance()
          Return ConnectionPool Context Object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ConnectionPoolContext getInstance()
Return ConnectionPool Context Object.

Returns:
ConnectionPoolContext

getInitialContext

public javax.naming.Context getInitialContext()
Return the only one context.

Returns:
Context

getDataSource

public javax.sql.DataSource getDataSource(java.lang.String name)
                                   throws javax.naming.NamingException
Return datasource

Parameters:
name - datasource's name
Returns:
datasource
Throws:
javax.naming.NamingException