1 25 package org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.callbacklogger; 26 27 import javax.ejb.EJB ; 28 29 import org.objectweb.easybeans.log.JLog; 30 import org.objectweb.easybeans.log.JLogFactory; 31 import org.objectweb.easybeans.tests.common.ejbs.entity.callbacklogger.CallbackType; 32 import org.objectweb.easybeans.tests.common.ejbs.entity.callbacklogger.OperationType; 33 34 38 public class BaseInsertOperation { 39 40 43 private JLog logger = JLogFactory.getLog(BaseInsertOperation.class); 44 45 48 @EJB (beanName = "SLSBOperationLoggerAccess") 49 private ItfOperationLoggerAccess beanLogger; 50 51 58 public void log(final Class className, final CallbackType event, final Class eventClassName, 59 final OperationType operationType) { 60 log(className.getName(), event, eventClassName.getName(), operationType); 61 } 62 63 70 public void log(final String className, final CallbackType event, final String eventClassName, 71 final OperationType operationType) { 72 logger.debug("Logging event in: {0}", className); 73 beanLogger.insertOperationLogger(className, event, eventClassName, operationType); 74 } 75 76 84 public void log(final String className, final CallbackType event, final String eventClassName, 85 final OperationType operationType, final String description) { 86 logger.debug("Logging event in: {0}", className); 87 beanLogger.insertOperationLogger(className, event, eventClassName, operationType, description); 88 } 89 } 90 | Popular Tags |