1 25 26 package org.objectweb.jonas.jtests.beans.etype; 27 28 import javax.ejb.EntityBean ; 29 import javax.ejb.EntityContext ; 30 import javax.ejb.RemoveException ; 31 32 import org.objectweb.jonas.common.Log; 33 import org.objectweb.util.monolog.api.BasicLevel; 34 import org.objectweb.util.monolog.api.Logger; 35 36 37 42 43 public abstract class EtypeBean implements EntityBean { 44 45 static protected Logger logger = null; 46 47 protected EntityContext entityContext; 48 49 public void setEntityContext(EntityContext ctx) { 50 if (logger == null) 51 logger = Log.getLogger(Log.JONAS_TESTS_PREFIX); 52 logger.log(BasicLevel.DEBUG, ""); 53 entityContext = ctx; 54 55 } 56 57 public void unsetEntityContext() { 58 logger.log(BasicLevel.DEBUG, ""); 59 } 60 61 public void ejbActivate() { 62 logger.log(BasicLevel.DEBUG, ""); 63 } 64 65 public void ejbPassivate() { 66 logger.log(BasicLevel.DEBUG, ""); 67 } 68 69 public void ejbLoad() { 70 logger.log(BasicLevel.DEBUG, ""); 71 } 72 73 public void ejbStore() { 74 logger.log(BasicLevel.DEBUG, ""); 75 } 76 77 public void ejbRemove() throws RemoveException { 78 logger.log(BasicLevel.DEBUG, ""); 79 } 80 81 82 } 83 | Popular Tags |