| javax.interceptor.InvocationContext
InvocationContext | public interface InvocationContext (Code) | | Context information passed to AroundInvoke and
Interceptor-class lifecycle callback methods.
|
Method Summary | |
public Map<String, Object> | getContextData() Returns the context data associated with this invocation or
lifecycle callback. | public Method | getMethod() Returns the method of the bean class for which the interceptor
was invoked. | public Object[] | getParameters() Returns the parameters that will be used to invoke
the business method. | public Object | getTarget() Returns the target instance. | public Object | proceed() Proceed to the next entry in the interceptor chain.
The proceed method returns the result of the next
method invoked. | public void | setParameters(Object[] params) Sets the parameters that will be used to invoke the
business method. |
getContextData | public Map<String, Object> getContextData()(Code) | | Returns the context data associated with this invocation or
lifecycle callback. If there is no context data, an
empty Map object will be returned.
|
getMethod | public Method getMethod()(Code) | | Returns the method of the bean class for which the interceptor
was invoked. For AroundInvoke methods, this is the business
method on the bean class. For lifecycle callback methods,
returns null.
|
getParameters | public Object[] getParameters()(Code) | | Returns the parameters that will be used to invoke
the business method. If setParameters has been called,
getParameters() returns the values to which the parameters
have been set.
exception: java.lang.IllegalStateException - if invoked withina lifecycle callback method. |
getTarget | public Object getTarget()(Code) | | Returns the target instance.
|
proceed | public Object proceed() throws Exception(Code) | | Proceed to the next entry in the interceptor chain.
The proceed method returns the result of the next
method invoked. If the method returns void, proceed
returns null.
|
setParameters | public void setParameters(Object[] params)(Code) | | Sets the parameters that will be used to invoke the
business method.
exception: java.lang.IllegalStateException - if invoked withina lifecycle callback method. exception: java.lang.IllegalArgumentException - if the parameter types do not match the types for the business method, or the number of parameters supplied does notequal the number of parameters for the business method. |
|
|