public interface InvocationContext
| Modifier and Type | Method and Description | 
|---|---|
| Map<String,Object> | getContextData()Returns the context data associated with this invocation or lifecycle callback. | 
| Method | getMethod()Get the invoked method for this invocation. | 
| Object[] | getParameters()Get the parameters of the method invocation (for method interceptors). | 
| Object | getTarget()Get the target instance for this invocation. | 
| Object | getTimer()Get the timer associated with an  @AroundTimeoutinterceptor method. | 
| Object | proceed()Proceed with the next stage of invocation processing. | 
| void | setParameters(Object[] params)Replace the parameters of the method invocation. | 
Object getTarget()
Method getMethod()
@AroundInvoke or
 @AroundTimeout interceptor method, the method of the target class is returned.  For
 lifecycle callback interceptors (such as @PostConstruct or @PreDestroy), null is returned.null if none applies to the current invocation contextObject[] getParameters() throws IllegalStateException
IllegalStateException - if the current invocation context refers to a lifecycle callback invocationvoid setParameters(Object[] params) throws IllegalStateException, IllegalArgumentException
params - the new parameter values to use for the current invocationIllegalStateException - if the current invocation context refers to a lifecycle callback invocationIllegalArgumentException - if the types or quantity of the method parameters does not match the method
 declarationMap<String,Object> getContextData()
MessageContext.  If there is no context data, an empty Map object will be returned.  Normally,
 information stored in this map is available to subsequent interceptors in an interceptor chain, so this mechanism
 may be used to pass information from one interceptor to the next.Object getTimer()
@AroundTimeout interceptor method.  When intercepting
 an EJB component timeout, the returned type is Timer.null if the invocation did not apply to a timeout method.Object proceed() throws Exception
 If the intercepted method's return type is void, or if this is a lifecycle method interceptor, then
 null is returned from this method, and should be returned by the interceptor as well.
Exception - if an exception is thrown by subsequent processingCopyright © 2018 JBoss by Red Hat. All rights reserved.