org.objectweb.jonas.jndi.interceptors.impl.datasource
Class DataSourceLeakDetectorContextInterceptor

java.lang.Object
  extended byorg.objectweb.jonas.jndi.interceptors.impl.AbsContextInterceptor
      extended byorg.objectweb.jonas.jndi.interceptors.impl.datasource.DataSourceLeakDetectorContextInterceptor
All Implemented Interfaces:
org.objectweb.carol.jndi.intercept.ContextInterceptor

public class DataSourceLeakDetectorContextInterceptor
extends AbsContextInterceptor
implements org.objectweb.carol.jndi.intercept.ContextInterceptor

Context interceptor for Datasources

Author:
Florent Benoit

Constructor Summary
DataSourceLeakDetectorContextInterceptor()
           
 
Method Summary
 java.lang.Object intercept(org.objectweb.carol.jndi.intercept.InterceptionContext context)
          Intercept the lookup on the Datasources.
 
Methods inherited from class org.objectweb.jonas.jndi.interceptors.impl.AbsContextInterceptor
filterOnJndiName, filterOnMethodName, getResourceCheckerManager, setResourceCheckerManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceLeakDetectorContextInterceptor

public DataSourceLeakDetectorContextInterceptor()
Method Detail

intercept

public java.lang.Object intercept(org.objectweb.carol.jndi.intercept.InterceptionContext context)
                           throws java.lang.Exception
Intercept the lookup on the Datasources.

Specified by:
intercept in interface org.objectweb.carol.jndi.intercept.ContextInterceptor
Parameters:
context - the interception context with data
Returns:
the wrapped datasource if intercepted, else it provides the original datasource
Throws:
java.lang.Exception - if interception fails