Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 19747 invoked from network); 31 Jul 2009 15:09:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Jul 2009 15:09:02 -0000 Received: (qmail 93455 invoked by uid 500); 31 Jul 2009 15:09:02 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 93415 invoked by uid 500); 31 Jul 2009 15:09:02 -0000 Mailing-List: contact dev-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 dev@felix.apache.org Received: (qmail 93405 invoked by uid 99); 31 Jul 2009 15:09:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Jul 2009 15:09:02 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Jul 2009 15:08:59 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8113A234C4A7 for ; Fri, 31 Jul 2009 08:08:15 -0700 (PDT) Message-ID: <317186302.1249052895527.JavaMail.jira@brutus> Date: Fri, 31 Jul 2009 08:08:15 -0700 (PDT) From: "Felix Meschberger (JIRA)" To: dev@felix.apache.org Subject: [jira] Updated: (FELIX-1223) Replace ManagedService[Factory] by ConfigurationListener based component configuration In-Reply-To: <485725187.1244786527437.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Felix Meschberger updated FELIX-1223: ------------------------------------- Fix Version/s: (was: scr-1.0.10) scr-1.2.0 Retargeting fixes for SCR 1.2.0 release. There will be no 1.0.10 release. > Replace ManagedService[Factory] by ConfigurationListener based component configuration > -------------------------------------------------------------------------------------- > > Key: FELIX-1223 > URL: https://issues.apache.org/jira/browse/FELIX-1223 > Project: Felix > Issue Type: Improvement > Components: Declarative Services (SCR) > Affects Versions: scr-1.0.8 > Reporter: Felix Meschberger > Assignee: Felix Meschberger > Fix For: scr-1.2.0 > > > Currently configuration is provided to components by registering a ManagedService services for each non-factory component and ManagedServiceFactory services for each factory component. This has several drawbacks: > * It may lead to component cycling on startup: start with no configuration, get configuration after activation and this reactivate > * As a consequence of unneeded component reactivation, the system is loaded more and changes for deadlocks raise > * As a consequence of unneeded component reactivation, other components might need to be reactivated, too, further raising load > * It places a load on the service registry due to the number for registered ManagedService[Factory] services > * It makes it probably harder to implement FELIX-924 > As discussed on the dev list [1] it would be better to refactor configuration support as follows: > * When a component is created, the existing configuration is already retrieved from ConfigurationAdmin. > * SCR registers a ConfigurationListener which updates the components on configuration updates. > Primarily the first step allows for simple FELIX-924 implementation in that on component activation, we may ensure configuration presence if required. Also it removes the requirement to reactivate components on startup since configuration events are only sent upon effective configuration change. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.