1 4 package com.tc.object.config.schema; 5 6 import com.tc.util.Assert; 7 import com.tc.util.stringification.OurStringBuilder; 8 9 12 public class IncludedInstrumentedClass implements InstrumentedClass { 13 14 private final String classExpression; 15 private final boolean honorTransient; 16 private final boolean honorVolatile; 17 private final IncludeOnLoad onLoad; 18 19 public IncludedInstrumentedClass(String 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 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 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 |