KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > config > DSOClientConfigHelperLogger


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.object.config;
5
6 import com.tc.logging.TCLogger;
7
8 /**
9  * Class containing log methods for {@link DSOClientConfigHelper}.
10  */

11 public class DSOClientConfigHelperLogger {
12   private final TCLogger LOGGER;
13
14   DSOClientConfigHelperLogger(TCLogger logger) {
15     this.LOGGER = logger;
16   }
17
18   void logIsLockMethodNoMatch(String JavaDoc className, String JavaDoc methodName) {
19     if (LOGGER.isDebugEnabled()) LOGGER.debug("isLockMethod() " + className + "." + methodName + ": NO MATCH");
20   }
21
22   void logIsLockMethodMatch(Lock[] locks, String JavaDoc className, String JavaDoc methodName, int i) {
23     if (LOGGER.isDebugEnabled()) LOGGER.debug("isLockMethod() " + className + "." + methodName + ": FOUND A MATCH: "
24                                               + locks[i]);
25   }
26
27   void logIsLockMethodAutolock() {
28     LOGGER.debug("isLockMethod(): is autolock and is method is synchronized, returning true.");
29   }
30
31   void logIsLockMethodBegin(int modifiers, String JavaDoc className, String JavaDoc methodName, String JavaDoc description) {
32     if (LOGGER.isDebugEnabled()) LOGGER.debug("isLockMethod(" + modifiers + ", " + className + ", " + methodName + ", "
33                                               + description + ")");
34   }
35
36 }
Popular Tags