net.sf.crispy.proxy
Class InvocationHandler
java.lang.Object
net.sf.crispy.proxy.InvocationHandler
- public final class InvocationHandler
- extends java.lang.Object
Handel Invocation from the DynamicProxy-implementation.
Intern call the InvocationHandler all registered Interceptors before and after the doInvoke-Method.
- Author:
- Linke
Method Summary |
static java.lang.Object |
doInvoke(DynamicProxy pvDynamicProxy,
java.lang.Object pvProxy,
java.lang.reflect.Method pvMethod,
java.lang.Object[] pvArgs)
|
static java.lang.Object |
doInvoke(DynamicProxy pvDynamicProxy,
java.lang.Object pvProxy,
java.lang.reflect.Method pvMethod,
java.lang.Object[] pvArgs,
InterceptorHandler pvInterceptorHandler)
|
static java.lang.Object |
doInvoke(DynamicProxy pvDynamicProxy,
java.lang.Object pvProxy,
java.lang.reflect.Method pvMethod,
java.lang.Object[] pvArgs,
java.lang.Object pvElseObject)
|
static java.lang.Object |
doInvoke(DynamicProxy pvDynamicProxy,
java.lang.Object pvProxy,
java.lang.reflect.Method pvMethod,
java.lang.Object[] pvArgs,
java.lang.Object pvElseObject,
InterceptorHandler pvInterceptorHandler)
This method must call from the DynamicProy-implementation.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InvocationHandler
public InvocationHandler()
doInvoke
public static java.lang.Object doInvoke(DynamicProxy pvDynamicProxy,
java.lang.Object pvProxy,
java.lang.reflect.Method pvMethod,
java.lang.Object[] pvArgs,
java.lang.Object pvElseObject,
InterceptorHandler pvInterceptorHandler)
throws java.lang.Exception
- This method must call from the DynamicProy-implementation.
The method invoke the
invokeIfExecutorIsNull
method from DynamicProxy-implementation.
- Parameters:
pvDynamicProxy
- Implementation of DynamicProxypvProxy
- the Proxy-ObjectpvMethod
- the called MethodpvArgs
- the Args from called MethodpvElseObject
- implementation specific Object.
For example the Param-Object: MethodProxy bei @see net.sf.crispy.impl.DynamicCglibProxy Implementation.
Or null
- Returns:
- Result from the method-call
- Throws:
java.lang.Throwable
- Error by the method-call
java.lang.Exception
doInvoke
public static java.lang.Object doInvoke(DynamicProxy pvDynamicProxy,
java.lang.Object pvProxy,
java.lang.reflect.Method pvMethod,
java.lang.Object[] pvArgs,
java.lang.Object pvElseObject)
throws java.lang.Exception
- Throws:
java.lang.Exception
doInvoke
public static java.lang.Object doInvoke(DynamicProxy pvDynamicProxy,
java.lang.Object pvProxy,
java.lang.reflect.Method pvMethod,
java.lang.Object[] pvArgs,
InterceptorHandler pvInterceptorHandler)
throws java.lang.Exception
- Throws:
java.lang.Exception
doInvoke
public static java.lang.Object doInvoke(DynamicProxy pvDynamicProxy,
java.lang.Object pvProxy,
java.lang.reflect.Method pvMethod,
java.lang.Object[] pvArgs)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2005-2006 Crispy. All Rights Reserved.