org.test4j.tools.reflector.imposteriser
类 FieldProxy
java.lang.Object
org.test4j.tools.reflector.imposteriser.FieldProxy
- 所有已实现的接口:
- Invokable
public class FieldProxy
- extends Object
- implements Invokable
目标对象字段的代理
用于运行时动态获得目标对象字段的实际值调用
see @SpringBeanFor
see @Inject
- 作者:
- darui.wudr
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FieldProxy
public FieldProxy(Class testClazz,
String fieldName)
invoke
public Object invoke(Invocation invocation)
throws Throwable
- 从接口
Invokable 复制的描述
- Performs an action in response to an invocation.
- 指定者:
- 接口
Invokable 中的 invoke
- 参数:
invocation - The invocation to perform.
- 返回:
- The result of the invocation, if not throwing an exception. Must
return
null if the invoked method has a void return
type.
- 抛出:
Throwable - An exception to be thrown to the caller, if not
returning a value. Any checked exception thrown must be in
the throws list of the invoked method.
Copyright © 2013. All rights reserved.