FileDocCategorySizeDatePackage
CallbackInvocationContext.javaAPI DocGlassfish v2 API3827Fri May 04 22:33:00 BST 2007com.sun.ejb.containers.interceptors

CallbackInvocationContext

public class CallbackInvocationContext extends Object implements javax.interceptor.InvocationContext
Concrete InvocationContext implementation passed to callback methods defined in interceptor classes.

Fields Summary
private com.sun.ejb.containers.EJBContextImpl
ejbContext
private Map
contextData
private int
callbackIndex
private CallbackChainImpl
callbackChain
Constructors Summary
public CallbackInvocationContext(com.sun.ejb.containers.EJBContextImpl ejbContextImpl, CallbackChainImpl chain)


      
                                       
        ejbContext = ejbContextImpl;
        callbackChain = chain;
    
Methods Summary
public java.util.MapgetContextData()

        if( contextData == null ) {
            contextData = new HashMap();
        }

        return contextData;
    
public javax.ejb.EJBContextgetEJBContext()

        return ejbContext;
    
public java.lang.reflect.MethodgetMethod()

        return null;
    
public java.lang.Object[]getParameters()

        throw new IllegalStateException("not applicable to Callback methods");
    
public java.lang.ObjectgetTarget()

        return ejbContext.getEJB();
    
public java.lang.Objectproceed()

        try {
            callbackIndex++;
            return callbackChain.invokeNext(callbackIndex, this);
        } catch (Exception ex) {
            throw ex;
        } catch (Throwable th) {
            throw new Exception(th);
        }
    
public voidsetParameters(java.lang.Object[] params)

        throw new IllegalStateException("not applicable to Callback methods");