Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 43554 invoked from network); 3 Sep 2004 18:21:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Sep 2004 18:21:47 -0000 Received: (qmail 89437 invoked by uid 500); 3 Sep 2004 18:21:32 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 89346 invoked by uid 500); 3 Sep 2004 18:21:31 -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 89272 invoked by uid 500); 3 Sep 2004 18:21:31 -0000 Received: (qmail 89255 invoked by uid 99); 3 Sep 2004 18:21:31 -0000 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 03 Sep 2004 11:21:30 -0700 Received: (qmail 43326 invoked by uid 1670); 3 Sep 2004 18:21:29 -0000 Date: 3 Sep 2004 18:21:29 -0000 Message-ID: <20040903182129.43325.qmail@minotaur.apache.org> From: yoavs@apache.org To: jakarta-tomcat-catalina-cvs@apache.org Subject: cvs commit: jakarta-tomcat-catalina/webapps/docs changelog.xml X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N yoavs 2004/09/03 11:21:29 Modified: catalina/src/share/org/apache/catalina/core Tag: TOMCAT_5_0 StandardDefaultContext.java catalina/src/share/org/apache/naming/factory Tag: TOMCAT_5_0 BeanFactory.java webapps/docs Tag: TOMCAT_5_0 changelog.xml Log: Bugzilla 29914, typo fix in BeanFactory Revision Changes Path No revision No revision 1.15.2.1 +19 -1 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/Attic/StandardDefaultContext.java Index: StandardDefaultContext.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/Attic/StandardDefaultContext.java,v retrieving revision 1.15 retrieving revision 1.15.2.1 diff -u -r1.15 -r1.15.2.1 --- StandardDefaultContext.java 26 May 2004 15:36:35 -0000 1.15 +++ StandardDefaultContext.java 3 Sep 2004 18:21:28 -0000 1.15.2.1 @@ -867,6 +867,14 @@ } + /** + * Get the lifecycle listeners associated with this lifecycle. If this + * Lifecycle has no listeners registered, a zero-length array is returned. + */ + public LifecycleListener[] findLifecycleListeners() { + return (LifecycleListener[]) lifecycle.toArray(new LifecycleListener[lifecycle.size()]); + } + /** * Return the set of application listener class names configured @@ -1095,6 +1103,16 @@ } + /** + * Remove a lifecycle event listener from this component. + * + * @param listener The listener to remove + */ + public void removeLifecycleListener(LifecycleListener listener) { + if((lifecycle != null) && (listener != null)) { + lifecycle.remove(listener); + } + } /** * Remove the specified application listener class from the set of No revision No revision 1.2.2.3 +1 -1 jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/factory/BeanFactory.java Index: BeanFactory.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/factory/BeanFactory.java,v retrieving revision 1.2.2.2 retrieving revision 1.2.2.3 diff -u -r1.2.2.2 -r1.2.2.3 --- BeanFactory.java 3 Sep 2004 18:06:23 -0000 1.2.2.2 +++ BeanFactory.java 3 Sep 2004 18:21:28 -0000 1.2.2.3 @@ -225,7 +225,7 @@ throw ne; } catch (java.lang.IllegalAccessException iae) { NamingException ne = new NamingException(iae.getMessage()); - ne.setRootause(iae); + ne.setRootCause(iae); throw ne; } catch (java.lang.InstantiationException ie2) { NamingException ne = new NamingException(ie2.getMessage()); No revision No revision 1.70.2.31 +3 -0 jakarta-tomcat-catalina/webapps/docs/changelog.xml Index: changelog.xml =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/changelog.xml,v retrieving revision 1.70.2.30 retrieving revision 1.70.2.31 diff -u -r1.70.2.30 -r1.70.2.31 --- changelog.xml 3 Sep 2004 18:06:23 -0000 1.70.2.30 +++ changelog.xml 3 Sep 2004 18:21:28 -0000 1.70.2.31 @@ -63,6 +63,9 @@ 31052: BeanFactory swallows root cause of exception. (yoavs) + + 29914: Better lifecycle support for DefaultContext. (yoavs) + --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org