EJBContainerInvocationpublic class EJBContainerInvocation extends org.jboss.aop.joinpoint.MethodInvocation Representation of an EJB invocation on the serverside |
Fields Summary |
---|
private static final long | serialVersionUID | protected T | ctx | private BeanContextLifecycleCallback | callback |
Constructors Summary |
---|
public EJBContainerInvocation(org.jboss.aop.MethodInfo info)
super(info, info.getInterceptors());
| public EJBContainerInvocation(org.jboss.aop.advice.Interceptor[] interceptors, long methodHash, Method advisedMethod, Method unadvisedMethod, org.jboss.aop.Advisor advisor)
super(interceptors, methodHash, advisedMethod, unadvisedMethod, advisor);
| public EJBContainerInvocation()
super(null, null);
|
Methods Summary |
---|
public org.jboss.aop.joinpoint.Invocation | copy()
EJBContainerInvocation<A, T> wrapper = new EJBContainerInvocation<A, T>(interceptors, methodHash, advisedMethod, unadvisedMethod, advisor);
wrapper.metadata = this.metadata;
wrapper.currentInterceptor = this.currentInterceptor;
wrapper.setTargetObject(this.getTargetObject());
wrapper.setArguments(this.getArguments());
wrapper.setBeanContext(this.ctx);
wrapper.callback = this.callback;
return wrapper;
| public A | getAdvisor()
return (A) super.getAdvisor();
| public T | getBeanContext()
return ctx;
| public org.jboss.aop.joinpoint.Invocation | getWrapper(org.jboss.aop.advice.Interceptor[] newchain)
return new EJBContainerInvocationWrapper<A, T>(this, newchain);
| public void | setBeanContext(T beanCtx)
if(beanCtx != null)
{
ctx = beanCtx;
if(callback != null)
callback.attached(beanCtx);
}
else
{
if(callback != null)
callback.released(ctx);
ctx = null;
}
| public void | setContextCallback(BeanContextLifecycleCallback callback)
this.callback = callback;
|
|