Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 81469 invoked from network); 25 Aug 2009 19:49:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Aug 2009 19:49:52 -0000 Received: (qmail 9751 invoked by uid 500); 25 Aug 2009 19:50:17 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 9691 invoked by uid 500); 25 Aug 2009 19:50:17 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 9682 invoked by uid 99); 25 Aug 2009 19:50:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Aug 2009 19:50:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Aug 2009 19:50:15 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 8BCEB23888CB; Tue, 25 Aug 2009 19:49:55 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r807782 - in /geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container: BlueprintEventDispatcher.java BlueprintExtender.java Date: Tue, 25 Aug 2009 19:49:55 -0000 To: scm@geronimo.apache.org From: gawor@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090825194955.8BCEB23888CB@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: gawor Date: Tue Aug 25 19:49:55 2009 New Revision: 807782 URL: http://svn.apache.org/viewvc?rev=807782&view=rev Log: no need to keep last state of the context once it has been destroyed Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/BlueprintEventDispatcher.java geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/BlueprintExtender.java Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/BlueprintEventDispatcher.java URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/BlueprintEventDispatcher.java?rev=807782&r1=807781&r2=807782&view=diff ============================================================================== --- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/BlueprintEventDispatcher.java (original) +++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/BlueprintEventDispatcher.java Tue Aug 25 19:49:55 2009 @@ -144,6 +144,10 @@ } } + protected void contextDestroyed(Bundle bundle) { + states.remove(bundle); + } + public void destroy() { this.executor.shutdown(); // wait for the queued tasks to execute Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/BlueprintExtender.java URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/BlueprintExtender.java?rev=807782&r1=807781&r2=807782&view=diff ============================================================================== --- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/BlueprintExtender.java (original) +++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/BlueprintExtender.java Tue Aug 25 19:49:55 2009 @@ -170,6 +170,7 @@ if (blueprintContainer != null) { LOGGER.debug("Destroying BlueprintContainer for bundle {}", bundle.getSymbolicName()); blueprintContainer.destroy(); + eventDispatcher.contextDestroyed(bundle); } }