ix.util.ipc
Class WrapperStrategy
java.lang.Object
ix.util.ipc.WrapperStrategy
- All Implemented Interfaces:
- IPC.CommunicationStrategy, ParameterizedCommStrategy
- Direct Known Subclasses:
- FilterStrategy, SeparateStrategy, TestStrategy, TracingStrategy
public class WrapperStrategy
- extends java.lang.Object
- implements ParameterizedCommStrategy
A communication strategy that is wrapped around another, "inner",
strategy.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
innerStrategy
IPC.CommunicationStrategy innerStrategy
WrapperStrategy
public WrapperStrategy()
WrapperStrategy
public WrapperStrategy(IPC.CommunicationStrategy innerStrategy)
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