1 5 6 package test.jmx; 7 8 import javax.management.ObjectName ; 9 10 11 69 70 public class JBossXMLExample 71 { 72 73 private String string; 74 private Integer id; 75 private ObjectName ref; 76 77 82 public JBossXMLExample () 83 { 84 85 } 86 87 96 public JBossXMLExample (String string, Integer id) 97 { 98 this.string = string; 99 this.id = id; 100 } 101 102 103 118 public String getString() 119 { 120 return string; 121 } 122 123 138 public String [][] getStrings() 139 { 140 return new String [][]{ new String [] {"one", "two", "three"}, 141 new String [] {"uno", "dos", "tres"}}; 142 } 143 144 150 public void setString(String newString) 151 { 152 this.string = newString; 153 } 154 155 156 169 public Integer getId() 170 { 171 return id; 172 } 173 174 179 public void setId(Integer newId) 180 { 181 this.id = newId; 182 } 183 184 Integer value; 185 186 198 public Integer getValue() 199 { 200 return value; 201 } 202 203 208 public void setValue(Integer newValue) 209 { 210 this.value = newValue; 211 } 212 213 214 223 public ObjectName getRef() 224 { 225 return ref; 226 } 227 228 234 public void setRef(ObjectName newRef) 235 { 236 this.ref = newRef; 237 } 238 239 240 241 255 public String doSomething(String p1, Integer p2) 256 { 257 return p1 + p2; 258 } 259 260 } 262 268 | Popular Tags |