01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.object.config;
05:
06: import com.tc.logging.TCLogger;
07:
08: /**
09: * 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 className, String methodName) {
19: if (LOGGER.isDebugEnabled())
20: LOGGER.debug("isLockMethod() " + className + "."
21: + methodName + ": NO MATCH");
22: }
23:
24: void logIsLockMethodMatch(Lock[] locks, String className,
25: String methodName, int i) {
26: if (LOGGER.isDebugEnabled())
27: LOGGER.debug("isLockMethod() " + className + "."
28: + methodName + ": FOUND A MATCH: " + locks[i]);
29: }
30:
31: void logIsLockMethodAutolock() {
32: LOGGER
33: .debug("isLockMethod(): is autolock and is method is synchronized, returning true.");
34: }
35:
36: void logIsLockMethodBegin(int modifiers, String className,
37: String methodName, String description) {
38: if (LOGGER.isDebugEnabled())
39: LOGGER.debug("isLockMethod(" + modifiers + ", " + className
40: + ", " + methodName + ", " + description + ")");
41: }
42:
43: }
|