org.huihoo.jfox.pool
Class PoolableObjectInvocationHandler

java.lang.Object
  |
  +--org.huihoo.jfox.pool.PoolableObjectInvocationHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler
Direct Known Subclasses:
PoolableConnectionInvocationHandler

public class PoolableObjectInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

需要拦截 PoolableObject 的方法调用的时候,使用 Proxy 机制来访问

Author:
Young Yang

Constructor Summary
PoolableObjectInvocationHandler()
           
PoolableObjectInvocationHandler(PoolableObject poolableObject)
           
 
Method Summary
 PoolableObject getPoolableObject()
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PoolableObjectInvocationHandler

public PoolableObjectInvocationHandler()

PoolableObjectInvocationHandler

public PoolableObjectInvocationHandler(PoolableObject poolableObject)
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler

getPoolableObject

public PoolableObject getPoolableObject()