View Single Post
  #2 (permalink)  
Old January 12th, 2009
GregorK GregorK is offline
Phex Developer
 
Join Date: May 8th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

phex.msghandling.MessageDispatcher.handleQuery()

You can also hook your own class into it:

Code:
public class MyClass implements MessageSubscriber<QueryMsg> {
  public void onMessage(QueryMsg query, Host sourceHost) {
    ...
  }
}
MyClass c = new MyClass();
Servent.getInstance().getMessageService().addMessageSubscriber(
  QueryMsg.class, c);
__________________
Reply With Quote