1 /**
2 *
3 */
4 package org.sourceforge.jemm.comm.shared;
5
6 /**
7 * Initialisation message used by RPCHandler listing the interfaces
8 * available for call by the sender.
9 *
10 * @author Rory Graves
11 */
12 public class AvailableIFsMessage extends Message {
13 private static final long serialVersionUID = 1L;
14
15 /** The interfaces offered by the sender. */
16 private final Class<?>[] offeredIFs;
17
18 /**
19 * Creates an AvailableIFsMessage with the given interface list.
20 * @param offeredIFs The interfaces offered by the creator.
21 */
22 public AvailableIFsMessage(Class<?>[] offeredIFs) {
23 super(null);
24 this.offeredIFs = offeredIFs.clone();
25 }
26
27 public Class<?>[] getOfferedIFs() {
28 return offeredIFs;
29 }
30 }