Source code: com/fetish/directory/tool/InterfaceEntry.java
1 package com.fetish.directory.tool;
2
3 import net.jini.core.entry.Entry;
4 import java.io.Serializable;
5
6 /**
7 * Standard FADA attribute for Jini registrations.
8 * <br>It contains a given interface name. This guides the FADA search
9 * process by converting a Jini interface search in a Jini attribute
10 * search. Jini interface search needs the interface exported, and so
11 * clients used to be forced to export the interface/s they were looking
12 * for. This is not true anymore.
13 * <p>This class needn't be used by either clients or service providers,
14 * as it will be used by the toolkit and the Fada.
15 */
16
17 public class InterfaceEntry implements Entry, Serializable {
18
19 /**
20 * The name of the interface class implemented.
21 */
22 public String interfaceName;
23
24 public InterfaceEntry() {
25 }
26
27 public InterfaceEntry( String name ) {
28 this.interfaceName = name;
29 }
30
31 public String toString() {
32 return this.interfaceName;
33 }
34 }