1 22 package org.jboss.ejb3.stateful; 23 24 import java.lang.reflect.Method ; 25 import org.jboss.aop.Advisor; 26 import org.jboss.aop.MethodInfo; 27 import org.jboss.aop.advice.Interceptor; 28 import org.jboss.aop.joinpoint.Invocation; 29 import org.jboss.ejb3.EJBContainerInvocation; 30 31 37 public class StatefulContainerInvocation extends EJBContainerInvocation 38 { 39 private Object id; 40 41 public StatefulContainerInvocation(Interceptor[] interceptors, long methodHash, Method advisedMethod, Method unadvisedMethod, Advisor advisor, Object id) 42 { 43 super(interceptors, methodHash, advisedMethod, unadvisedMethod, advisor); 44 this.id = id; 45 } 46 47 public StatefulContainerInvocation(MethodInfo info, Interceptor[] interceptors, Object id) 48 { 49 super(info, interceptors); 50 this.id = id; 51 } 52 53 public StatefulContainerInvocation() 54 { 55 } 56 57 public Object getId() 58 { 59 return id; 60 } 61 62 public Invocation copy() 63 { 64 StatefulContainerInvocation wrapper = new StatefulContainerInvocation(interceptors, methodHash, advisedMethod, unadvisedMethod, advisor, id); 65 wrapper.metadata = this.metadata; 66 wrapper.currentInterceptor = this.currentInterceptor; 67 wrapper.setTargetObject(this.getTargetObject()); 68 wrapper.setArguments(this.getArguments()); 69 wrapper.setBeanContext(this.ctx); 70 return wrapper; 71 } 72 73 } 74 | Popular Tags |