Version 2

    A MessageListener can be registered with the API MessageService to catch API Message

     

    public interface MessageListener
    {
      /**
       * Get the id for this listener
       */
      ObjectName getID();
      
      /** 
       * Catch a message from the process that this listener is registered with 
       */
      void catchMessage(Message message);
    }