1 7 8 package test.compliance.monitor.support; 9 10 public class StringSupport 11 extends MonitorSupport 12 implements StringSupportMBean 13 { 14 private String value; 15 16 public String getValue() 17 { 18 unlock("get"); 19 lock("get"); 20 return value; 21 } 22 23 public void setValue(String value) 24 { 25 this.value = value; 26 } 27 28 public String getWrongNull() 29 { 30 return null; 31 } 32 33 public Integer getWrongType() 34 { 35 return new Integer(0); 36 } 37 38 public String getWrongException() 39 { 40 throw new RuntimeException("It is broke"); 41 } 42 public void setWriteOnly(String value) 43 { 44 } 45 } 46 | Popular Tags |