com.caucho.ejb.interceptor
Class InvocationContextImpl

java.lang.Object
  extended by com.caucho.ejb.interceptor.InvocationContextImpl
All Implemented Interfaces:
InvocationContext

public class InvocationContextImpl
extends java.lang.Object
implements InvocationContext

InvocationContext implementation.


Constructor Summary
InvocationContextImpl(java.lang.Object target, java.lang.Object home, java.lang.String methodName, java.lang.Class[] parameterTypes, java.lang.Object[] interceptors, java.lang.reflect.Method[] methods)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> getContextData()
           
 java.lang.Object getHome()
           
 java.lang.reflect.Method getMethod()
           
 java.lang.Object[] getParameters()
           
 java.lang.Object getTarget()
           
static java.lang.Object invokeMethod(java.lang.reflect.Method method, java.lang.Object obj, java.lang.Object[] params)
           
 java.lang.Object proceed()
           
 void setParameters(java.lang.Object[] parameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvocationContextImpl

public InvocationContextImpl(java.lang.Object target,
                             java.lang.Object home,
                             java.lang.String methodName,
                             java.lang.Class[] parameterTypes,
                             java.lang.Object[] interceptors,
                             java.lang.reflect.Method[] methods)
Method Detail

getHome

public java.lang.Object getHome()

getTarget

public java.lang.Object getTarget()
Specified by:
getTarget in interface InvocationContext

getMethod

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

getParameters

public java.lang.Object[] getParameters()
                                 throws java.lang.IllegalStateException
Specified by:
getParameters in interface InvocationContext
Throws:
java.lang.IllegalStateException

setParameters

public void setParameters(java.lang.Object[] parameters)
                   throws java.lang.IllegalStateException
Specified by:
setParameters in interface InvocationContext
Throws:
java.lang.IllegalStateException

getContextData

public java.util.Map<java.lang.String,java.lang.Object> getContextData()
Specified by:
getContextData in interface InvocationContext

proceed

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

invokeMethod

public static java.lang.Object invokeMethod(java.lang.reflect.Method method,
                                            java.lang.Object obj,
                                            java.lang.Object[] params)
                                     throws java.lang.Exception
Throws:
java.lang.Exception