org.logicalcobwebs.proxool.proxy
类 InvokerFacade

java.lang.Object
  继承者 org.logicalcobwebs.proxool.proxy.InvokerFacade

public class InvokerFacade
extends Object

Invokes a method using a cached method.

从以下版本开始:
Proxool 0.9
版本:
$Revision: 1.3 $, $Date: 2004/07/13 21:13:14 $
作者:
billhorsman, $Author: billhorsman $ (current maintainer)

构造方法摘要
InvokerFacade()
           
 
方法摘要
static Method getConcreteMethod(Class concreteClass, Method injectableMethod)
          Returns the method in the concrete class with an indentical signature to that passed
static void overrideConcreteMethod(Class concreteClass, Method injectableMethod, Method overridenMethod)
          Override the method provided by the getConcreteMethod(java.lang.Class, java.lang.reflect.Method).
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

InvokerFacade

public InvokerFacade()
方法详细信息

getConcreteMethod

public static Method getConcreteMethod(Class concreteClass,
                                       Method injectableMethod)
                                throws ProxoolException
Returns the method in the concrete class with an indentical signature to that passed

参数:
concreteClass - the class that we want to invoke methods on. It should either implement all methods on the injectable interface, or provide methods with an identical signature.
injectableMethod - provides signature that we are trying to match
返回:
the method in the concrete class that we can invoke as if it were in the interface
抛出:
ProxoolException - if the method is not found.

overrideConcreteMethod

public static void overrideConcreteMethod(Class concreteClass,
                                          Method injectableMethod,
                                          Method overridenMethod)
Override the method provided by the getConcreteMethod(java.lang.Class, java.lang.reflect.Method). Use this if you decide that the concrete method provided wasn't any good. For instance, if you get an IllegalAccessException whilst invoking the concrete method then you should perhaps try using the proxy supplied method instead.

参数:
concreteClass - the class we are invoking upon
injectableMethod - the method supplied by the proxy
overridenMethod - the one we are going to use (probably the same as injectrableMethod actually)


Copyright © 2014. All rights reserved.