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

1    package javassist.sample.rmi; 
2    import java.io.Serializable; 
3     
4    /** 
5     * Created by  
6     * User: lyon 
7     * Date: Jan 23, 2004 
8     * Time: 9:24:34 AM 
9     *  
10    */ 
11   public class RemoteComputation { 
12       // you cannot pass an argument! 
13       public Serializable compute(Computable c){ 
14           System.out.println("computing on server..."); 
15           return c.compute(); 
16       } 
17   } 
18