1 46 package groovy.util; 47 48 public class Dummy implements DummyMBean { 49 50 private String name = "James"; 51 private String location = "London"; 52 private int size = 12; 53 54 public Dummy() { 55 } 56 57 public Dummy(String name, String location) { 58 this.name = name; 59 this.location = location; 60 } 61 62 public void start() { 63 System.out.println("Started!"); 64 } 65 66 public void stop() { 67 System.out.println("Stopped!"); 68 } 69 70 public String getLocation() { 71 return location; 72 } 73 74 public void setLocation(String location) { 75 this.location = location; 76 } 77 78 public String getName() { 79 return name; 80 } 81 82 public void setName(String name) { 83 this.name = name; 84 } 85 86 public int getSize() { 87 return size; 88 } 89 90 public void setSize(int size) { 91 this.size = size; 92 } 93 94 } 95 | Popular Tags |