java.lang.Object
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor
- public class ProxyMethodInterceptor
- extends java.lang.Object
- Version:
- $Rev: 106345 $ $Date: 2004-11-23 12:37:03 -0800 (Tue, 23 Nov 2004) $
|
Method Summary |
private ProxyInvoker[] |
createGBeanInvokers(org.apache.geronimo.kernel.Kernel kernel,
javax.management.ObjectName objectName)
|
private ProxyInvoker |
createJMXGBeanInvoker(org.apache.geronimo.kernel.Kernel kernel,
java.lang.reflect.Method method,
java.util.Set operationSignatures,
java.util.Set attributeNames)
|
private ProxyInvoker[] |
createKernelGBeanInvokers(org.apache.geronimo.kernel.Kernel kernel,
javax.management.ObjectName objectName,
java.lang.Class proxyType)
|
private ProxyInvoker |
createRawGBeanInvoker(org.apache.geronimo.gbean.runtime.RawInvoker rawInvoker,
java.lang.reflect.Method method,
java.util.Map operations,
java.util.Map attributes)
|
private ProxyInvoker[] |
createRawGBeanInvokers(org.apache.geronimo.gbean.runtime.RawInvoker rawInvoker,
java.lang.Class proxyType)
|
void |
destroy()
|
private static java.lang.Integer |
getMethodIndex(java.util.Map attributes,
java.lang.String attributeName)
|
javax.management.ObjectName |
getObjectName()
|
private static int |
getSuperIndex(java.lang.Class proxyType,
java.lang.reflect.Method method)
|
java.lang.Object |
intercept(java.lang.Object object,
java.lang.reflect.Method method,
java.lang.Object[] args,
MethodProxy proxy)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
proxyType
private final java.lang.Class proxyType
- Type of the proxy interface
objectName
private final javax.management.ObjectName objectName
- The object name to which we are connected.
gbeanInvokers
private ProxyInvoker[] gbeanInvokers
- GBeanInvokers keyed on the proxy interface method index
ProxyMethodInterceptor
public ProxyMethodInterceptor(java.lang.Class proxyType,
org.apache.geronimo.kernel.Kernel kernel,
javax.management.ObjectName objectName)
destroy
public void destroy()
getObjectName
public javax.management.ObjectName getObjectName()
intercept
public final java.lang.Object intercept(java.lang.Object object,
java.lang.reflect.Method method,
java.lang.Object[] args,
MethodProxy proxy)
throws java.lang.Throwable
createGBeanInvokers
private ProxyInvoker[] createGBeanInvokers(org.apache.geronimo.kernel.Kernel kernel,
javax.management.ObjectName objectName)
createRawGBeanInvokers
private ProxyInvoker[] createRawGBeanInvokers(org.apache.geronimo.gbean.runtime.RawInvoker rawInvoker,
java.lang.Class proxyType)
createRawGBeanInvoker
private ProxyInvoker createRawGBeanInvoker(org.apache.geronimo.gbean.runtime.RawInvoker rawInvoker,
java.lang.reflect.Method method,
java.util.Map operations,
java.util.Map attributes)
createKernelGBeanInvokers
private ProxyInvoker[] createKernelGBeanInvokers(org.apache.geronimo.kernel.Kernel kernel,
javax.management.ObjectName objectName,
java.lang.Class proxyType)
createJMXGBeanInvoker
private ProxyInvoker createJMXGBeanInvoker(org.apache.geronimo.kernel.Kernel kernel,
java.lang.reflect.Method method,
java.util.Set operationSignatures,
java.util.Set attributeNames)
getSuperIndex
private static int getSuperIndex(java.lang.Class proxyType,
java.lang.reflect.Method method)
getMethodIndex
private static java.lang.Integer getMethodIndex(java.util.Map attributes,
java.lang.String attributeName)