Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 65424 invoked from network); 11 May 2002 00:00:50 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 11 May 2002 00:00:50 -0000 Received: (qmail 1445 invoked by uid 97); 11 May 2002 00:00:50 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 1429 invoked by uid 97); 11 May 2002 00:00:49 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 1410 invoked by uid 98); 11 May 2002 00:00:48 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Date: Fri, 10 May 2002 17:00:37 -0700 (PDT) From: "Craig R. McClanahan" To: Tomcat Developers List Subject: Re: [4.1] Add additional events In-Reply-To: <008c01c1f875$39296200$64859181@apache.org> Message-ID: <20020510165115.F56198-100000@icarus.apache.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Fri, 10 May 2002, Remy Maucherat wrote: > Date: Fri, 10 May 2002 15:51:26 -0700 > From: Remy Maucherat > Reply-To: Tomcat Developers List > To: tomcat-dev@jakarta.apache.org > Subject: [4.1] Add additional events > > I plan to add additional events to the components start and stop methods: > before_start, after_start, before_stop, after_stop. This has been suggested > and discussed a while ago, but never actually implemented. > Are you thinking about adding new method calls to the Lifecycle interface, versus just some new event types? If it's the former, a couple of thoughts: * The initialize() method was added to o.a.c.Connector, primarily to provide what I imagine you're thinking of as before_start -- I'd suggest either using this name or migrating it to before_start. * There are quite a number of places that components implementing Lifecycle are started and stopped dynamically -- dealing with them all is a non-trivial amount of editing (although the changes required are pretty straightforward). Adding just the extra event notifications makes sense, and is somewhat easier (although you still have to fire them from all the appropriate places), but doesn't give you quite as much flexibility in managing things since the listeners don't throw a checked exception. > Remy > Craig -- To unsubscribe, e-mail: For additional commands, e-mail: