【发布时间】:2013-08-08 14:55:54
【问题描述】:
如果参数上存在注释,是否可以获得参数的值?
给定带有参数级注释的 EJB:
public void fooBar(@Foo String a, String b, @Foo String c) {...}
还有一个拦截器:
@AroundInvoke
public Object doIntercept(InvocationContext context) throws Exception {
// Get value of parameters that have annotation @Foo
}
【问题讨论】:
标签: java reflection annotations ejb interceptor