javax.interceptor
Interface InvocationContext


public interface InvocationContext

The InvocationContext object provides the metadata that is required for AroundInvoke interceptor methods.


Method Summary
 java.util.Map<java.lang.String,java.lang.Object> getContextData()
          Returns the context data associated with this invocation or lifecycle callback.
 java.lang.reflect.Method getMethod()
           
 java.lang.Object[] getParameters()
           
 java.lang.Object getTarget()
           
 java.lang.Object getTimer()
          Returns the timer associated with an @AroundTimeout method.
 java.lang.Object proceed()
           
 void setParameters(java.lang.Object[] params)
           
 

Method Detail

getTarget

java.lang.Object getTarget()

getMethod

java.lang.reflect.Method getMethod()

getParameters

java.lang.Object[] getParameters()

setParameters

void setParameters(java.lang.Object[] params)

getContextData

java.util.Map<java.lang.String,java.lang.Object> getContextData()
Returns the context data associated with this invocation or lifecycle callback. If there is no context data, an empty Map object will be returned.


getTimer

java.lang.Object getTimer()
Returns the timer associated with an @AroundTimeout method.

Since:
3.1

proceed

java.lang.Object proceed()
                         throws java.lang.Exception
Throws:
java.lang.Exception