ix.util.ipc
Class DispatchingStrategy

java.lang.Object
  extended by ix.util.ipc.DispatchingStrategy
All Implemented Interfaces:
IPC.CommunicationStrategy, ParameterizedCommStrategy

public class DispatchingStrategy
extends java.lang.Object
implements ParameterizedCommStrategy


Constructor Summary
DispatchingStrategy()
           
 
Method Summary
 IPC.CommunicationStrategy apply(java.lang.String[] args)
          Process the arguments in whatever way is appropriate.
 void sendObject(java.lang.Object destination, java.lang.Object contents)
           
 void setupServer(java.lang.Object destination, IPC.MessageListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DispatchingStrategy

public DispatchingStrategy()
Method Detail

apply

public IPC.CommunicationStrategy apply(java.lang.String[] args)
Description copied from interface: ParameterizedCommStrategy
Process the arguments in whatever way is appropriate. The result is normally the same communication strategy, after whatever changes are caused by processing the arguments.

Specified by:
apply in interface ParameterizedCommStrategy

sendObject

public void sendObject(java.lang.Object destination,
                       java.lang.Object contents)
Specified by:
sendObject in interface IPC.CommunicationStrategy

setupServer

public void setupServer(java.lang.Object destination,
                        IPC.MessageListener listener)
Specified by:
setupServer in interface IPC.CommunicationStrategy