1 22 package test.implementation.util.support; 23 24 import javax.management.MBeanServer ; 25 26 31 public class Trivial implements TrivialMBean 32 { 33 private String something = null; 34 private boolean anAttribute = true; 35 private boolean gmsWasInvoked = false; 36 37 public void setSomething(String thing) 38 { 39 this.something = thing; 40 } 41 42 public String getSomething() 43 { 44 return something; 45 } 46 47 public void doOperation() 48 { 49 } 50 51 public MBeanServer getMBeanServer() 52 { 53 gmsWasInvoked = true; 54 return null; 55 } 56 57 public boolean isGMSInvoked() 58 { 59 return gmsWasInvoked; 60 } 61 } 62 | Popular Tags |