@Target(value=METHOD) @Retention(value=RUNTIME) public @interface AroundInvoke
InvocationContext
, returning an Object
.
The annotation may be applied a method of the target class (or a superclass thereof), or to a method of any
interceptor class; however only one method of the class may be so annotated.
An @AroundInvoke
interceptor method can invoke any component or resource that the method it is intercepting
can invoke. In particular, the same transaction and security contexts apply to the interceptor method as to the
intercepted method.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.