1 22 package org.jboss.jmx.examples.configuration; 23 24 import org.jboss.logging.Logger; 25 26 29 public class SampleConfig implements SampleConfigMBean 30 { 31 private static final Logger log = Logger.getLogger(SampleConfig.class.getName()); 32 33 private String testAttribute = "Initial Value"; 34 35 public String getTestAttribute() 36 { 37 return testAttribute; 38 } 39 40 public void setTestAttribute(String testValue) 41 { 42 log.debug("Settting testAttribute for SampleConfig."); 43 log.debug("Old value = " + testAttribute); 44 log.debug("New value = " + testValue); 45 this.testAttribute = testValue; 46 } 47 } | Popular Tags |