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.schema;
05:
06: import com.tc.config.schema.BaseNewConfigObject;
07: import com.tc.config.schema.context.ConfigContext;
08: import com.tc.config.schema.dynamic.BooleanConfigItem;
09: import com.terracottatech.config.DsoClientData;
10:
11: /**
12: * The standard implementation of {@link DSOInstrumentationLoggingOptions}.
13: */
14: public class StandardDSOInstrumentationLoggingOptions extends
15: BaseNewConfigObject implements DSOInstrumentationLoggingOptions {
16:
17: private final BooleanConfigItem logClass;
18: private final BooleanConfigItem logLocks;
19: private final BooleanConfigItem logTransientRoot;
20: private final BooleanConfigItem logRoots;
21: private final BooleanConfigItem logDistributedMethods;
22:
23: public StandardDSOInstrumentationLoggingOptions(
24: ConfigContext context) {
25: super (context);
26:
27: this .context.ensureRepositoryProvides(DsoClientData.class);
28:
29: this .logClass = this .context
30: .booleanItem("debugging/instrumentation-logging/class");
31: this .logLocks = this .context
32: .booleanItem("debugging/instrumentation-logging/locks");
33: this .logTransientRoot = this .context
34: .booleanItem("debugging/instrumentation-logging/transient-root");
35: this .logRoots = this .context
36: .booleanItem("debugging/instrumentation-logging/roots");
37: this .logDistributedMethods = this .context
38: .booleanItem("debugging/instrumentation-logging/distributed-methods");
39: }
40:
41: public BooleanConfigItem logClass() {
42: return this .logClass;
43: }
44:
45: public BooleanConfigItem logLocks() {
46: return this .logLocks;
47: }
48:
49: public BooleanConfigItem logTransientRoot() {
50: return this .logTransientRoot;
51: }
52:
53: public BooleanConfigItem logRoots() {
54: return this .logRoots;
55: }
56:
57: public BooleanConfigItem logDistributedMethods() {
58: return this.logDistributedMethods;
59: }
60:
61: }
|