KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > config > schema > StandardDSORuntimeOutputOptions


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

5 package com.tc.object.config.schema;
6
7 import com.tc.config.schema.BaseNewConfigObject;
8 import com.tc.config.schema.context.ConfigContext;
9 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 BaseNewConfigObject implements DSORuntimeOutputOptions {
16
17   private final BooleanConfigItem doAutoLockDetails;
18   private final BooleanConfigItem doCaller;
19   private final BooleanConfigItem doFullStack;
20
21   public StandardDSORuntimeOutputOptions(ConfigContext context) {
22     super(context);
23
24     this.context.ensureRepositoryProvides(DsoClientData.class);
25
26     this.doAutoLockDetails = this.context.booleanItem("debugging/runtime-output-options/auto-lock-details");
27     this.doCaller = this.context.booleanItem("debugging/runtime-output-options/caller");
28     this.doFullStack = this.context.booleanItem("debugging/runtime-output-options/full-stack");
29   }
30
31   public BooleanConfigItem doAutoLockDetails() {
32     return this.doAutoLockDetails;
33   }
34
35   public BooleanConfigItem doCaller() {
36     return this.doCaller;
37   }
38
39   public BooleanConfigItem doFullStack() {
40     return this.doFullStack;
41   }
42
43 }
44
Popular Tags