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 B6C3510C42 for ; Sat, 1 Jun 2013 09:28:17 +0000 (UTC) Received: (qmail 38367 invoked by uid 500); 1 Jun 2013 09:28:17 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 37834 invoked by uid 500); 1 Jun 2013 09:28:13 -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 37805 invoked by uid 99); 1 Jun 2013 09:28:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Jun 2013 09:28:12 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [74.125.82.169] (HELO mail-we0-f169.google.com) (74.125.82.169) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Jun 2013 09:28:07 +0000 Received: by mail-we0-f169.google.com with SMTP id w61so393770wes.0 for ; Sat, 01 Jun 2013 02:27:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to :x-gm-message-state; bh=rPJJ1iFqdA7TEc3NltjsZx/TYB0E99UdWBGUb9WF3nQ=; b=FjXosi70Xq8ac7tuQsFGDaoKMatHONyPucfDwR2NIlXkRWGSLERFBYM5jAFrlrUlXQ GrXvIgU2SlrwFso7uwdFn/4QCLCUkFuB1uaT4RjYLl+pPpVgIJWaM5I5lo0fSI2XXysR negSBKKE5CjAP8coXsKW3ySlXNoS32LnBE1Qn6ji7o4O2pgOxLYJeGPsn8zmSdljorFD 39Z+S4hnG/HgL9gGGJoX0NlJFWRUt9r7Ydt0Qt2eyq4//ta6RfHjCOUe1KT6+jMqbjg0 jQOfqv9qjFc/10AHd/LoyS7LbucoWYIW6Pmwih7Sa68CI0gLt4MXXp7hkvI9c2ARxzsS Z4Gw== X-Received: by 10.194.104.105 with SMTP id gd9mr12591500wjb.1.1370078845578; Sat, 01 Jun 2013 02:27:25 -0700 (PDT) Received: from [10.0.1.5] (AMontpellier-158-1-146-42.w92-145.abo.wanadoo.fr. [92.145.5.42]) by mx.google.com with ESMTPSA id x13sm8997092wib.3.2013.06.01.02.27.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 01 Jun 2013 02:27:24 -0700 (PDT) References: <1370038233657-5003596.post@n6.nabble.com> In-Reply-To: <1370038233657-5003596.post@n6.nabble.com> Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: Cc: "users@felix.apache.org" X-Mailer: iPad Mail (9B206) From: Peter Kriens Subject: Re: declarative Services Date: Sat, 1 Jun 2013 11:27:26 +0200 To: "users@felix.apache.org" X-Gm-Message-State: ALoCoQnOGtKrGEfZEWusWu/d7LNEulS7a12BKA3T7CLjPOLNEUnHqo0GxWmwk5ojcxsIohEZHWkO X-Virus-Checked: Checked by ClamAV on apache.org If I had to start over with the design of OSGi there would be no bundle acti= vator, just DS components ... The activator was a mistake since it is a sing= leton and I now sometimes wonder what we are smoking, forcing people to hand= le their own service dependencies. DS's support services, service factories,= and more as well as fully handling service dependencies makes services as l= ightweight as classes. With the DS annotations you can turn ay class into a s= ervice (factory) whenever you want, not requiring any extra setup. I found i= t amazing how light weight services became once I could do this. You can control the life cycle of the component with config admin using mana= ged service (factories). Config admin can define/override service properties= and define which service dependencies are bound by setting the target filte= r.=20 With DS you do not need the dependency manager since DS handles deps for you= .=20 Again, OSGi was not complete until DS was specified. Kind regards,=20 Peters Kriens Sent from my iPad On 1 jun. 2013, at 00:10, bokie wrote: > I'm quite comfortable with OSGi and Felix but have I've never used > Declarative Services. I've started reading up on the topic and started to > ask my self some questions with respect to how I currently do things: > - Are there any real benefits in using Declarative Services? > - How does Declarative Services "integrate" with the the Configuration > Admin? > - How does Declarative Services "integrate" with the the Dependency Manage= r >=20 >=20 >=20 > -- > View this message in context: http://apache-felix.18485.x6.nabble.com/decl= arative-Services-tp5003596.html > Sent from the Apache Felix - Users mailing list archive at Nabble.com. >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org > For additional commands, e-mail: users-help@felix.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org