KickJava   Java API By Example, From Geeks To Geeks.

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


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.schema;
5
6 import com.tc.config.schema.BaseNewConfigObject;
7 import com.tc.config.schema.context.ConfigContext;
8 import com.tc.config.schema.dynamic.IntConfigItem;
9 import com.terracottatech.config.DsoClientData;
10
11 public class NewL1DSOConfigObject extends BaseNewConfigObject implements NewL1DSOConfig {
12
13   public static final String JavaDoc DSO_INSTRUMENTATION_LOGGING_OPTIONS_SUB_XPATH = "";
14
15   private final IntConfigItem faultCount;
16
17   private final DSOInstrumentationLoggingOptions instrumentationLoggingOptions;
18   private final DSORuntimeLoggingOptions runtimeLoggingOptions;
19   private final DSORuntimeOutputOptions runtimeOutputOptions;
20
21   public NewL1DSOConfigObject(ConfigContext context) {
22     super(context);
23
24     this.context.ensureRepositoryProvides(DsoClientData.class);
25
26     this.faultCount = this.context.intItem("fault-count");
27     this.instrumentationLoggingOptions = new StandardDSOInstrumentationLoggingOptions(this.context);
28     this.runtimeLoggingOptions = new StandardDSORuntimeLoggingOptions(this.context);
29     this.runtimeOutputOptions = new StandardDSORuntimeOutputOptions(this.context);
30   }
31
32   public DSOInstrumentationLoggingOptions instrumentationLoggingOptions() {
33     return this.instrumentationLoggingOptions;
34   }
35
36   public DSORuntimeLoggingOptions runtimeLoggingOptions() {
37     return this.runtimeLoggingOptions;
38   }
39
40   public DSORuntimeOutputOptions runtimeOutputOptions() {
41     return this.runtimeOutputOptions;
42   }
43
44   public IntConfigItem faultCount() {
45     return faultCount;
46   }
47
48 }
49
Popular Tags