Class CallbackInvocationContext
- java.lang.Object
-
- com.sun.ejb.containers.interceptors.CallbackInvocationContext
-
- All Implemented Interfaces:
jakarta.interceptor.InvocationContext
- Direct Known Subclasses:
AroundInvokeInvocationContext
public class CallbackInvocationContext extends Object implements jakarta.interceptor.InvocationContext
Concrete InvocationContext implementation passed to callback methods defined in interceptor classes.
-
-
Constructor Summary
Constructors Constructor Description CallbackInvocationContext(Class<?> targetObjectClass, Object[] interceptorInstances, com.sun.ejb.containers.interceptors.CallbackChainImpl chain, LifecycleCallbackDescriptor.CallbackType eventType, BaseContainer container, EJBContextImpl ctx)
AroundConstructCallbackInvocationContext(Class<?> targetObjectClass, Object[] interceptorInstances, com.sun.ejb.containers.interceptors.CallbackChainImpl chain, LifecycleCallbackDescriptor.CallbackType eventType, InterceptorInfo interceptorInfo)
AroundConstructCallbackInvocationContext(Object targetObjectInstance, Object[] interceptorInstances, com.sun.ejb.containers.interceptors.CallbackChainImpl chain)
CallbackInvocationContext(Object targetObjectInstance, Object[] interceptorInstances, com.sun.ejb.containers.interceptors.CallbackChainImpl chain, LifecycleCallbackDescriptor.CallbackType eventType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Constructor<?>
getConstructor()
Map<String,Object>
getContextData()
Object[]
getInterceptorInstances()
Method
getMethod()
Object[]
getParameters()
Object
getTarget()
Object
getTimer()
void
invokeSpecial()
Called from Interceptor Chain to create the bean instance.Object
proceed()
void
setParameters(Object[] params)
-
-
-
Constructor Detail
-
CallbackInvocationContext
public CallbackInvocationContext(Object targetObjectInstance, Object[] interceptorInstances, com.sun.ejb.containers.interceptors.CallbackChainImpl chain)
-
CallbackInvocationContext
public CallbackInvocationContext(Object targetObjectInstance, Object[] interceptorInstances, com.sun.ejb.containers.interceptors.CallbackChainImpl chain, LifecycleCallbackDescriptor.CallbackType eventType)
-
CallbackInvocationContext
public CallbackInvocationContext(Class<?> targetObjectClass, Object[] interceptorInstances, com.sun.ejb.containers.interceptors.CallbackChainImpl chain, LifecycleCallbackDescriptor.CallbackType eventType, InterceptorInfo interceptorInfo)
AroundConstruct
-
CallbackInvocationContext
public CallbackInvocationContext(Class<?> targetObjectClass, Object[] interceptorInstances, com.sun.ejb.containers.interceptors.CallbackChainImpl chain, LifecycleCallbackDescriptor.CallbackType eventType, BaseContainer container, EJBContextImpl ctx)
AroundConstruct
-
-
Method Detail
-
getTarget
public Object getTarget()
- Specified by:
getTarget
in interfacejakarta.interceptor.InvocationContext
-
getInterceptorInstances
public Object[] getInterceptorInstances()
-
getTimer
public Object getTimer()
- Specified by:
getTimer
in interfacejakarta.interceptor.InvocationContext
-
getConstructor
public Constructor<?> getConstructor()
- Specified by:
getConstructor
in interfacejakarta.interceptor.InvocationContext
-
getMethod
public Method getMethod()
- Specified by:
getMethod
in interfacejakarta.interceptor.InvocationContext
-
getParameters
public Object[] getParameters()
- Specified by:
getParameters
in interfacejakarta.interceptor.InvocationContext
-
setParameters
public void setParameters(Object[] params)
- Specified by:
setParameters
in interfacejakarta.interceptor.InvocationContext
-
getContextData
public Map<String,Object> getContextData()
- Specified by:
getContextData
in interfacejakarta.interceptor.InvocationContext
-
proceed
public Object proceed() throws Exception
- Specified by:
proceed
in interfacejakarta.interceptor.InvocationContext
- Throws:
Exception
-
-