1 16 package org.apache.pluto.portlet.admin; 17 18 19 25 public class BaseAdminObject { 26 27 private String _className = null; 29 private String _logId = null; 31 32 36 protected BaseAdminObject() { 37 } 38 39 protected BaseAdminObject(String className) { 40 _className = className; 41 } 42 43 protected BaseAdminObject(String className, String logId) { 44 _className = className; 45 _logId = logId; 46 } 47 48 protected void logMethodStart(String methodName) { 49 PlutoAdminLogger.logMethodStart(_className, methodName); 50 } 51 52 protected void logMethodEnd(String methodName) { 53 PlutoAdminLogger.logMethodEnd(_className, methodName); 54 } 55 56 protected void logMethodEnd(String methodName, Object retVal) { 57 PlutoAdminLogger.logMethodEnd(_className, methodName, retVal); 58 } 59 60 protected void logParam(String methodName, String paramName, Object paramVal) { 61 PlutoAdminLogger.logParam(_className, methodName, paramName, paramVal); 62 } 63 64 protected void logParam(String methodName, String paramName, int paramVal) { 65 PlutoAdminLogger.logParam(_className, methodName, paramName, paramVal); 66 } 67 68 protected void logParam(String methodName, String paramName, boolean paramVal) { 69 PlutoAdminLogger.logParam(_className, methodName, paramName, paramVal); 70 } 71 72 protected void logVar(String methodName, String varName, Object varVal) { 73 PlutoAdminLogger.logParam(_className, methodName, varName, varVal); 74 } 75 76 protected void logVar(String methodName, String varName, int varVal) { 77 PlutoAdminLogger.logParam(_className, methodName, varName, varVal); 78 } 79 80 protected void logVar(String methodName, String varName, boolean varVal) { 81 PlutoAdminLogger.logParam(_className, methodName, varName, varVal); 82 } 83 84 protected void logDebug(String methodName, String msg) { 85 PlutoAdminLogger.logDebug(_className, methodName, msg); 86 } 87 88 protected void logWarn(String methodName, String msg) { 89 PlutoAdminLogger.logWarn(_className, methodName, msg); 90 } 91 92 protected void logError(String methodName, String msg, Throwable e) { 93 PlutoAdminLogger.logError(_className, methodName, msg, e); 94 } 95 96 protected void logError(String methodName, Throwable e) { 97 PlutoAdminLogger.logError(_className, methodName, e); 98 } 99 } 100 | Popular Tags |