uk.ac.vamsas.client.simpleclient
Class SimplePickManager

java.lang.Object
  extended byuk.ac.vamsas.client.simpleclient.SimplePickManager
All Implemented Interfaces:
IPickManager

public class SimplePickManager
extends java.lang.Object
implements IPickManager

Blocking message handler

Author:

Method Summary
protected  void handleMessage(Message message)
          pass message onto the Apps handler, or wait until passThru is true before passing message on.
 boolean isPassThru()
           
 void registerMessageHandler(IMessageHandler handler)
          Registers a message handler with the manager that allows the manager to perform a method callback on that object whenever a message is received.
 void sendMessage(Message message)
          Sends a message.
 void setPassThru(boolean passThru)
           
 void shutdown()
          shutdown the pickmanager and remove all references to it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

registerMessageHandler

public void registerMessageHandler(IMessageHandler handler)
Description copied from interface: IPickManager
Registers a message handler with the manager that allows the manager to perform a method callback on that object whenever a message is received.

Specified by:
registerMessageHandler in interface IPickManager
Parameters:
handler - the message handler to register

sendMessage

public void sendMessage(Message message)
Description copied from interface: IPickManager
Sends a message.

Specified by:
sendMessage in interface IPickManager
Parameters:
message - the message to send

handleMessage

protected void handleMessage(Message message)
pass message onto the Apps handler, or wait until passThru is true before passing message on.

Parameters:
message -

isPassThru

public boolean isPassThru()
Returns:
true if messages are being passed to handlers

setPassThru

public void setPassThru(boolean passThru)

shutdown

public void shutdown()
shutdown the pickmanager and remove all references to it

Specified by:
shutdown in interface IPickManager