Return-Path: Delivered-To: apmail-avalon-dev-archive@www.apache.org Received: (qmail 84232 invoked from network); 26 Feb 2004 15:40:16 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 26 Feb 2004 15:40:16 -0000 Received: (qmail 2819 invoked by uid 500); 26 Feb 2004 15:40:09 -0000 Delivered-To: apmail-avalon-dev-archive@avalon.apache.org Received: (qmail 2792 invoked by uid 500); 26 Feb 2004 15:40:09 -0000 Mailing-List: contact dev-help@avalon.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon Developers List" Reply-To: "Avalon Developers List" Delivered-To: mailing list dev@avalon.apache.org Received: (qmail 2776 invoked from network); 26 Feb 2004 15:40:08 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 26 Feb 2004 15:40:08 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AwNcQ-00029w-00 for ; Thu, 26 Feb 2004 16:40:10 +0100 Received: from 66.208.12.130 ([66.208.12.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu Feb 26 15:40:10 2004 Received: from bloritsch by 66.208.12.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu Feb 26 15:40:10 2004 X-Injected-Via-Gmane: http://gmane.org/ To: dev@avalon.apache.org From: Berin Loritsch Subject: Re: [RT] Notification pattern has interesting effects on IoC Date: Thu, 26 Feb 2004 10:40:05 -0500 Lines: 20 Message-ID: References: <008701c3fc7d$05db5e40$0801a8c0@lagrange> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 66.208.12.130 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en In-Reply-To: <008701c3fc7d$05db5e40$0801a8c0@lagrange> Sender: news X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Leo Sutic wrote: > >>Not sure. In very 'busy' systems, it becomes a challange to >>write the 'hub', so that you don't need to synchronize the >>'addListener' and 'fireEvent' parts, because otherwise it >>becomes a bottleneck. > > > Listeners are added and removed comparatively rarely compared > to the number of fireEvent calls, so a copy-on-write list > can eliminate much synchronization. The GUIApp EventBus is very simple, and it separates out the need for synchronous and asynchronous events. If you need synchronous events we use the SwingUtils class to ensure all those events are fired in one thread. The asynchronous events can happen in any order. It's not hard. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org For additional commands, e-mail: dev-help@avalon.apache.org