/Users/lyon/j4p/src/javassist/sample/rmi/Job.java

1    package javassist.sample.rmi; 
2     
3    import java.io.Serializable; 
4     
5    /** 
6     * Created by 
7     * User: lyon 
8     * Date: Jan 26, 2004 
9     * Time: 5:40:11 AM 
10    * 
11    */ 
12   public class Job extends Computable { 
13       public Serializable compute() { 
14           System.out.println("I am running"); 
15           return "here is your answer"; 
16       } 
17       public static class IntJob extends Job { 
18           public Serializable compute() { 
19               System.out.println("computing an integer..."); 
20               return new Integer(42); 
21           } 
22       } 
23   }