com.syrtsov.ddao.conn
Class JNDIDataSourceHandler

java.lang.Object
  extended by com.syrtsov.ddao.conn.ConnectionHandlerHelper
      extended by com.syrtsov.ddao.conn.JNDIDataSourceHandler
All Implemented Interfaces:
Intializible, java.lang.reflect.InvocationHandler

public class JNDIDataSourceHandler
extends ConnectionHandlerHelper
implements Intializible

psdo: add class comments Created-By: Pavel Syrtsov Date: Apr 10, 2008 Time: 9:39:39 PM


Field Summary
static java.lang.String DS_CTX_PREFIX
           
 
Constructor Summary
JNDIDataSourceHandler()
           
 
Method Summary
protected  java.sql.Connection createConnection()
           
 void init(java.lang.Class<?> iFace, java.lang.annotation.Annotation annotation, java.util.List<java.lang.Class<?>> iFaceList)
          initialize this object to be used in context defined by parameters
 
Methods inherited from class com.syrtsov.ddao.conn.ConnectionHandlerHelper
getDaoInvocationHandler, invoke, setDaoInvocationHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DS_CTX_PREFIX

public static final java.lang.String DS_CTX_PREFIX
See Also:
Constant Field Values
Constructor Detail

JNDIDataSourceHandler

public JNDIDataSourceHandler()
Method Detail

createConnection

protected java.sql.Connection createConnection()
                                        throws java.sql.SQLException
Specified by:
createConnection in class ConnectionHandlerHelper
Throws:
java.sql.SQLException

init

public void init(java.lang.Class<?> iFace,
                 java.lang.annotation.Annotation annotation,
                 java.util.List<java.lang.Class<?>> iFaceList)
          throws InitializerException
Description copied from interface: Intializible
initialize this object to be used in context defined by parameters

Specified by:
init in interface Intializible
Overrides:
init in class ConnectionHandlerHelper
Parameters:
iFace - - interface that this InovationHandler shall be handling
annotation - - annotation that been used to create this object
iFaceList - - output parameter , InvocationHandler can add here additional interfaces that it can support
Throws:
InitializerException