1 16 17 package org.springframework.jmx; 18 19 27 public class JmxTestBean implements IJmxTestBean { 28 29 private String name; 30 31 private String nickName; 32 33 private int age; 34 35 private boolean isSuperman; 36 37 41 public int getAge() { 42 return age; 43 } 44 45 public void setAge(int age) { 46 this.age = age; 47 } 48 49 52 public long myOperation() { 53 return 1L; 54 } 55 56 61 public void setName(String name) { 62 this.name = name; 63 } 64 65 69 public String getName() { 70 return name; 71 } 72 73 78 public String getNickName() { 79 return this.nickName; 80 } 81 82 public void setNickName(String nickName) { 83 this.nickName = nickName; 84 } 85 86 91 public void setSuperman(boolean superman) { 92 this.isSuperman = superman; 93 } 94 95 public boolean isSuperman() { 96 return isSuperman; 97 } 98 99 106 public int add(int x, int y) { 107 return x + y; 108 } 109 110 113 public void dontExposeMe() { 114 throw new RuntimeException (); 115 } 116 117 protected void someProtectedMethod() { 118 } 119 120 private void somePrivateMethod() { 121 } 122 123 protected void getSomething() { 124 } 125 126 private void getSomethingElse() { 127 } 128 129 } 130 | Popular Tags |