public class MethodMapper extends Object
| 构造器和说明 |
|---|
MethodMapper(Class concreteClass) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Method |
getConcreteMethod(Method injectableMethod)
Returns the method in the concrete class with an indentical signature to that passed
as a parameter
|
void |
overrideConcreteMethod(Method injectableMethod,
Method overridenMethod)
Don't use the one we calculate using
getConcreteMethod(java.lang.reflect.Method), use this one instead. |
public MethodMapper(Class concreteClass)
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.protected Method getConcreteMethod(Method injectableMethod) throws ProxoolException
injectableMethod - provides signature that we are trying to matchProxoolException - if the method is not found.public void overrideConcreteMethod(Method injectableMethod, Method overridenMethod)
getConcreteMethod(java.lang.reflect.Method), use this one instead.injectableMethod - the method supplied by the proxyoverridenMethod - the one we are going to use (probably the same as injectrableMethod actually)Copyright © 2024. All rights reserved.