Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C613F4883 for ; Wed, 8 Jun 2011 12:51:58 +0000 (UTC) Received: (qmail 21861 invoked by uid 500); 8 Jun 2011 12:51:58 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 21826 invoked by uid 500); 8 Jun 2011 12:51:58 -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 21818 invoked by uid 99); 8 Jun 2011 12:51:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2011 12:51:58 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.82.41] (HELO mail-ww0-f41.google.com) (74.125.82.41) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2011 12:51:50 +0000 Received: by wwi18 with SMTP id 18so3431296wwi.4 for ; Wed, 08 Jun 2011 05:51:29 -0700 (PDT) Received: by 10.227.201.148 with SMTP id fa20mr1187508wbb.39.1307537489344; Wed, 08 Jun 2011 05:51:29 -0700 (PDT) Received: from [192.168.0.5] (AMontpellier-158-1-137-109.w90-42.abo.wanadoo.fr [90.42.200.109]) by mx.google.com with ESMTPS id gb6sm394732wbb.17.2011.06.08.05.51.26 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 08 Jun 2011 05:51:27 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: ConfigurationAdmin & SCR component self-update From: Peter Kriens In-Reply-To: <4DEB18E1.5020406@gmail.com> Date: Wed, 8 Jun 2011 14:51:25 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4DEB18E1.5020406@gmail.com> To: users@felix.apache.org X-Mailer: Apple Mail (2.1084) The basic idea is that when the user updates the window position the = code just updates the Configuration and not the screen. This will result = a call in modified that contains the new coordinates, which are then = used to reposition the window.=20 This way you have only one code path for the initial start and any = updates. Clean and simple.=20 Of course you should not do this for fine grained updates but for = courser configuration that is the approach: update config -> use the = notification to reflect the update. Kind regards, Peter Kriens On 5 jun 2011, at 07:49, Andrei Pozolotin wrote: > Hello. >=20 > I am using felix ConfigurationAdmin & SCR; >=20 > question: how can I combine ConfigurationAdmin & component = self-update? >=20 > for example, SCR component has a ui located on the screen (x,y); > this is pushed from ConfigurationAdmin to the component via > SCR.activate() & SCR.modified(); >=20 > now user moves a ui to a new (x,y); per osgi spec, = ConfigurationAdmin > does not differentiate on the update request source; >=20 > hence, Configuration.update(properties) (trying to persist the new > (x,y)) > if called from configuration target component itself, > will create a recursion, which it does; >=20 > and Configuration.update() /* with no properties*/ does not create = a > recursion, > but does not persist the configuration either; >=20 > what am I missing? :-) >=20 > Thank you, >=20 > Andrei. >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org