Calculator.java
01 package trail.jmx;
02 
03 public interface Calculator {
04 
05   // Attribute
06   public void setGrowthrate (double g);
07   public double getGrowthrate ();
08 
09   // The management method
10   public double calculate (int start, int end, double saving);
11 
12   // Life cycle method
13   public void create () throws Exception;
14   public void destroy () throws Exception;
15 }