1 //!-- UTF8 2 /* 3 Oregano Multiuser Server - Version 1.1.0 - April 14th, 2004 4 5 Web: www.oregano-server.org 6 Mail: info@oregano-server.org 7 8 Copyright 2003 - 2004 Jens Halm / Cologne, Germany 9 10 This library is free software; you can redistribute it and/or 11 modify it under the terms of the GNU Lesser General Public 12 License as published by the Free Software Foundation; either 13 version 2.1 of the License, or (at your option) any later version. 14 15 This library is distributed in the hope that it will be useful, 16 but WITHOUT ANY WARRANTY; without even the implied warranty of 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 Lesser General Public License for more details. 19 20 You should have received a copy of the GNU Lesser General Public 21 License along with this library; if not, write to the Free Software 22 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 23 */ 24 25 /* 26 ------------------------------------------- 27 Interface MessageHandler 28 29 @description : 30 Jeu de méthodes pour la gestion des messages par composition. 31 32 33 @author : copyleft http://www.v-i-a.net 34 ------------------------------------------- 35 version history : 36 1.0 : 05/01/05 37 - Utilisée pour une implémentation par composition. 38 ------------------------------------------- 39 */ 40 import org.omus.msg.Envelope; 41 42 /** 43 * Jeu de méthodes pour la gestion des messages par composition. 44 * 45 * @author Jens Halm copyright http://www.spicefactory.org/ 46 * @author erixtekila copyleft http://www.v-i-a.net 47 * @version 1.0 48 */ 49 interface org.omus.msg.iMessageHandler 50 { 51 /** 52 * Initialise le système de messages. 53 */ 54 // public function initMessageHandler ():Void; 55 56 /** 57 * Active la gestion d'un type de message en fonction du contenu de son enveloppe. 58 * 59 * @param env Une référence à l'enveloppe. 60 */ 61 public function handleMessage (env:Envelope):Void; 62 63 /** 64 * Rajoute un gestionnaire de message. 65 * 66 * @param subject Le type de message. 67 * @param methodName Le nom de l'événement gérant un type de message. 68 */ 69 public function addHandler (subject:String, methodName:String):Void; 70 }