Return-Path: Delivered-To: apmail-felix-commits-archive@www.apache.org Received: (qmail 9987 invoked from network); 28 Aug 2009 17:04:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Aug 2009 17:04:23 -0000 Received: (qmail 92915 invoked by uid 500); 28 Aug 2009 16:04:23 -0000 Delivered-To: apmail-felix-commits-archive@felix.apache.org Received: (qmail 92888 invoked by uid 500); 28 Aug 2009 16:04:23 -0000 Mailing-List: contact commits-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list commits@felix.apache.org Received: (qmail 92879 invoked by uid 99); 28 Aug 2009 16:04:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Aug 2009 16:04:23 +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; Fri, 28 Aug 2009 16:04:21 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 97FAE2388872; Fri, 28 Aug 2009 16:04:01 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r808934 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java Date: Fri, 28 Aug 2009 16:04:01 -0000 To: commits@felix.apache.org From: rickhall@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090828160401.97FAE2388872@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rickhall Date: Fri Aug 28 16:04:01 2009 New Revision: 808934 URL: http://svn.apache.org/viewvc?rev=808934&view=rev Log: Use system bundle update to restart framework is an extension bundle is refreshed. (FELIX-33) Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java?rev=808934&r1=808933&r2=808934&view=diff ============================================================================== --- felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java (original) +++ felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java Fri Aug 28 16:04:01 2009 @@ -27,7 +27,6 @@ import org.apache.felix.framework.cache.*; import org.apache.felix.framework.ext.SecurityProvider; import org.apache.felix.framework.searchpolicy.*; -import org.apache.felix.framework.ModuleImpl.ModuleClassLoader; import org.apache.felix.framework.ServiceRegistry.ServiceRegistryCallbacks; import org.apache.felix.framework.util.*; import org.apache.felix.framework.util.manifestparser.*; @@ -3389,12 +3388,6 @@ } } - if (restart) - { -// TODO: Extension Bundle - We need a way to restart the framework - m_logger.log(Logger.LOG_WARNING, "Framework restart not implemented."); - } - // Remove any targeted bundles from the uninstalled bundles // array, since they will be removed from the system after // the refresh. @@ -3438,6 +3431,18 @@ } } } + + if (restart) + { + try + { + update(); + } + catch (BundleException ex) + { + m_logger.log(Logger.LOG_ERROR, "Framework restart error.", ex); + } + } } finally {