01 package com.flat502.rox.demo;
02
03 import java.util.Date;
04 import java.util.List;
05
06 /**
07 * A common interface shared between {@link com.flat502.rox.demo.RMIClientDemo},
08 * {@link com.flat502.rox.demo.RMIAsyncServerDemo} and {@link com.flat502.rox.demo.RMISyncServerDemo}.
09 * <p>
10 * A common interface is essential because under the hood the client-side proxying
11 * functionality relies on Java's dynamic proxy functionality
12 * ({@link java.lang.reflect.Proxy}) and this is built around interfaces.
13 */
14 public interface RMIServerInterface {
15 public int sum(int[] list);
16
17 public String getVersionInfo(boolean verbose);
18
19 public Date getDate();
20 }
|