1 23 package org.hammurapi.inspectors.testcases.fixes; 24 25 import javax.ejb.SessionBean ; 26 import javax.ejb.SessionContext ; 27 28 33 public class ThisReferenceAsArgumentInEjbRuleFixTestCase 34 implements SessionBean { 35 36 private static final org.apache.log4j.Logger logger = 37 org.apache.log4j.Logger.getRootLogger(); 38 39 private SessionContext context; 40 41 42 public void ejbCreate() { 43 } 44 45 46 public void setSessionContext(final SessionContext pContext){ 47 this.context = pContext; 48 } 49 50 51 public void ejbActivate() { 52 53 touch(context.getEJBObject()); 55 56 } 57 58 59 public void ejbPassivate() { 60 } 61 62 63 public void ejbRemove() { 64 } 65 66 private Object lastTouched = null; 67 68 69 public void touch(final Object touched) { 70 lastTouched = touched; 71 } 72 } 73 74 | Popular Tags |