1 22 package org.jboss.test.jmx.xmbean; 23 24 import java.util.Date ; 25 import org.jboss.logging.Logger; 26 27 32 public class User2 33 { 34 private Logger log = Logger.getLogger(User2.class); 35 36 private String attr1; 37 private int attr2; 38 39 public User2() 40 { 41 } 42 public User2(String attr1) 43 { 44 this.attr1 = attr1; 45 } 46 47 public Integer getHashCode() 48 { 49 return new Integer (hashCode()); 50 } 51 52 public String getAttr1() 53 { 54 return attr1; 55 } 56 public void setAttr1(String attr1) 57 { 58 this.attr1 = attr1; 59 } 60 61 public int getAttr2() 62 { 63 return attr2; 64 } 65 public void setAttr2(int attr2) 66 { 67 this.attr2 = attr2; 68 } 69 70 public void start() throws Exception 71 { 72 log.info("Started"); 73 } 74 public void stop() throws Exception 75 { 76 log.info("Stopped"); 77 } 78 79 public void noop() 80 { 81 } 82 public String echoDate(String prefix) 83 { 84 return prefix + ": " + new Date (); 85 } 86 87 } 88 | Popular Tags |