com.sun.ejb.containers.interceptors
Class AroundInvokeInvocationContext

java.lang.Object
  extended by com.sun.ejb.containers.interceptors.CallbackInvocationContext
      extended by com.sun.ejb.containers.interceptors.AroundInvokeInvocationContext
All Implemented Interfaces:
InterceptorManager.AroundInvokeContext, InvocationContext

public class AroundInvokeInvocationContext
extends CallbackInvocationContext
implements InterceptorManager.AroundInvokeContext

Concrete InvocationContext implementation passed to callback methods defined in interceptor classes.


Constructor Summary
AroundInvokeInvocationContext(java.lang.Object targetObjectInstance, java.lang.Object[] interceptorInstances, InterceptorManager.InterceptorChain chain, java.lang.reflect.Method m, java.lang.Object[] params)
           
 
Method Summary
 java.lang.reflect.Method getMethod()
           
 java.lang.Object[] getParameters()
           
 java.lang.Object invokeBeanMethod()
          Called from Interceptor Chain to invoke the actual bean method.
 java.lang.Object proceed()
           
 void setParameters(java.lang.Object[] params)
           
 
Methods inherited from class com.sun.ejb.containers.interceptors.CallbackInvocationContext
getContextData, getInterceptorInstances, getTarget, getTimer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.ejb.containers.interceptors.InterceptorManager.AroundInvokeContext
getInterceptorInstances
 
Methods inherited from interface javax.interceptor.InvocationContext
getContextData, getTarget, getTimer
 

Constructor Detail

AroundInvokeInvocationContext

public AroundInvokeInvocationContext(java.lang.Object targetObjectInstance,
                                     java.lang.Object[] interceptorInstances,
                                     InterceptorManager.InterceptorChain chain,
                                     java.lang.reflect.Method m,
                                     java.lang.Object[] params)
Method Detail

getMethod

public java.lang.reflect.Method getMethod()
Specified by:
getMethod in interface InvocationContext
Overrides:
getMethod in class CallbackInvocationContext

proceed

public java.lang.Object proceed()
                         throws java.lang.Exception
Specified by:
proceed in interface InvocationContext
Overrides:
proceed in class CallbackInvocationContext
Throws:
java.lang.Exception

getParameters

public java.lang.Object[] getParameters()
Specified by:
getParameters in interface InvocationContext
Overrides:
getParameters in class CallbackInvocationContext

setParameters

public void setParameters(java.lang.Object[] params)
Specified by:
setParameters in interface InvocationContext
Overrides:
setParameters in class CallbackInvocationContext

invokeBeanMethod

public java.lang.Object invokeBeanMethod()
                                  throws java.lang.Throwable
Called from Interceptor Chain to invoke the actual bean method. This method must throw any exception from the bean method *as is*, without being wrapped in an InvocationTargetException. The exception thrown from this method will be propagated through the application's interceptor code, so it must not be changed in order for any exception handling logic in that code to function properly.

Specified by:
invokeBeanMethod in interface InterceptorManager.AroundInvokeContext
Throws:
java.lang.Throwable


Copyright © 2012 GlassFish Community. All Rights Reserved.