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