Package gnu.cajo.invoke
Interface RemoteInvoke
-
- All Superinterfaces:
Invoke
,java.rmi.Remote
,java.io.Serializable
- All Known Implementing Classes:
Remote
public interface RemoteInvoke extends Invoke, java.rmi.Remote
The Remote Component Communication Interface, and reason for this package. An empty extension of the Invoke interface, it allows both local, and remote objects, i.e. those from another VM, to be handled interchangably in code, through their superclass interface Invoke. When a VM wishes to allow remote access to an object, the local object would be passed to the constructor of theRemote
class included in this package.The implementation is so trivial, it is included it here:
public interface RemoteInvoke extends Invoke, Remote {}
Note: this interface is never implemented by classes directly, rather, a client only uses this interface to test if an object is remote, in cases where that would be of interest to the application.
To test the locality of an object reference:
if (foo instanceof RemoteInvoke) { // the object reference is remote ... } else { // the object reference is local ... }
- Version:
- 1.0, 01-Nov-99