KickJava   Java API By Example, From Geeks To Geeks.

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


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.util.Assert;
7 import com.tc.util.stringification.OurStringBuilder;
8
9 /**
10  * An {@link InstrumentedClass} that represents an included class.
11  */

12 public class IncludedInstrumentedClass implements InstrumentedClass {
13
14   private final String JavaDoc classExpression;
15   private final boolean honorTransient;
16   private final boolean honorVolatile;
17   private final IncludeOnLoad onLoad;
18
19   public IncludedInstrumentedClass(String JavaDoc classExpression, boolean honorTransient, boolean honorVolatile, IncludeOnLoad onLoad) {
20     Assert.assertNotBlank(classExpression);
21
22     this.classExpression = classExpression;
23     this.honorTransient = honorTransient;
24     this.honorVolatile = honorVolatile;
25     this.onLoad = onLoad;
26   }
27
28   public boolean isInclude() {
29     return true;
30   }
31
32   public String JavaDoc classExpression() {
33     return this.classExpression;
34   }
35
36   public boolean honorTransient() {
37     return this.honorTransient;
38   }
39
40   public boolean honorVolatile() {
41     return this.honorVolatile;
42   }
43
44   public IncludeOnLoad onLoad() {
45     return this.onLoad;
46   }
47
48   public String JavaDoc toString() {
49     return new OurStringBuilder(this, OurStringBuilder.COMPACT_STYLE).append("classExpression", this.classExpression)
50         .append("honorTransient", this.honorTransient).append("honorVolatile", this.honorVolatile).append("onLoad", this.onLoad).toString();
51   }
52 }
53
Popular Tags