Return-Path: Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: (qmail 27436 invoked from network); 8 Apr 2010 03:31:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Apr 2010 03:31:13 -0000 Received: (qmail 7337 invoked by uid 500); 8 Apr 2010 03:31:13 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 7179 invoked by uid 500); 8 Apr 2010 03:31:12 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 7166 invoked by uid 99); 8 Apr 2010 03:31:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Apr 2010 03:31:11 +0000 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=AWL,MISSING_MID,RCVD_IN_BRBL_LASTEXT,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [211.99.232.114] (HELO tongtech.com) (211.99.232.114) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 08 Apr 2010 03:31:04 +0000 Received: from IBM0618 (unknown [124.42.76.2]) by tongtech.com with CMailServer 5.3 SMTP; Thu, 08 Apr 2010 11:30:40 +0800 From: "ext2" To: Subject: Re: does felix support some trigger mechanism while install/uninstall bundles? Date: Thu, 8 Apr 2010 11:30:27 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <20100408030251.235F2816020@nike.apache.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Thread-Index: AcrWk8i/vj0EwDkYSbSrnoFWWCvEAgAMFJkgAAE5CiA= Message-Id: <20100408033111.7387A478482@athena.apache.org> I known, I should write a bundle act as a admin role to inspect for these special application bundles, when these special application bundles installed /uninstalled, the admin bundle should prepare or clean up environment for these bundles; But I still has following questions: if I write a application bundle, only the bundle itself knows how to prepare and clean-up environment; But the admin-bundle can only receive event after the application bundle un-installed, so the admin-bundle couldn't tell the application bundle to clean-up the environment. So does felix has some mechanism to notify the event just before bundle un-installed? ======================================================================= Hi: Does anyone know the felix has some extension trigger while install and uninstall bundle? Thus I could use the extension trigger to write some custom code to prepare some environment for the bundle to execute and clean the environment while the bundle is un-installed; The osgi framework does support install/uninstall event, but how to use this event ? I need to register the listener in the special bundle, but before the bundle started I couldn't register any listener. Thanks for any suggestion --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org