net.sf.crispy.proxy
Class InvocationHandler

java.lang.Object
  extended bynet.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

Constructor Summary
InvocationHandler()
           
 
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
 

Constructor Detail

InvocationHandler

public InvocationHandler()
Method Detail

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 DynamicProxy
pvProxy - the Proxy-Object
pvMethod - the called Method
pvArgs - the Args from called Method
pvElseObject - 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.