01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.object.config.schema;
06:
07: import com.tc.config.schema.BaseNewConfigObject;
08: import com.tc.config.schema.context.ConfigContext;
09: import com.tc.config.schema.dynamic.BooleanConfigItem;
10: import com.terracottatech.config.DsoClientData;
11:
12: /**
13: * The standard implementation of {@link DSORuntimeOutputOptions}.
14: */
15: public class StandardDSORuntimeOutputOptions extends
16: BaseNewConfigObject implements DSORuntimeOutputOptions {
17:
18: private final BooleanConfigItem doAutoLockDetails;
19: private final BooleanConfigItem doCaller;
20: private final BooleanConfigItem doFullStack;
21:
22: public StandardDSORuntimeOutputOptions(ConfigContext context) {
23: super (context);
24:
25: this .context.ensureRepositoryProvides(DsoClientData.class);
26:
27: this .doAutoLockDetails = this .context
28: .booleanItem("debugging/runtime-output-options/auto-lock-details");
29: this .doCaller = this .context
30: .booleanItem("debugging/runtime-output-options/caller");
31: this .doFullStack = this .context
32: .booleanItem("debugging/runtime-output-options/full-stack");
33: }
34:
35: public BooleanConfigItem doAutoLockDetails() {
36: return this .doAutoLockDetails;
37: }
38:
39: public BooleanConfigItem doCaller() {
40: return this .doCaller;
41: }
42:
43: public BooleanConfigItem doFullStack() {
44: return this.doFullStack;
45: }
46:
47: }
|