Return-Path: X-Original-To: apmail-felix-commits-archive@www.apache.org Delivered-To: apmail-felix-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8907B10AB5 for ; Sun, 22 Sep 2013 13:50:14 +0000 (UTC) Received: (qmail 81585 invoked by uid 500); 22 Sep 2013 13:50:13 -0000 Delivered-To: apmail-felix-commits-archive@felix.apache.org Received: (qmail 81524 invoked by uid 500); 22 Sep 2013 13:50:11 -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 81387 invoked by uid 99); 22 Sep 2013 13:50:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Sep 2013 13:50:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.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; Sun, 22 Sep 2013 13:49:59 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 8CEBD2388A02 for ; Sun, 22 Sep 2013 13:49:39 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r879431 - in /websites/staging/felix/trunk/content: ./ documentation/subprojects/apache-felix-dependency-manager/apache-felix-dependency-manager-using-annotations/dependencymanager-annotations-spellchecker.html Date: Sun, 22 Sep 2013 13:49:39 -0000 To: commits@felix.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130922134939.8CEBD2388A02@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: buildbot Date: Sun Sep 22 13:49:39 2013 New Revision: 879431 Log: Staging update by buildbot for felix Modified: websites/staging/felix/trunk/content/ (props changed) websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-dependency-manager/apache-felix-dependency-manager-using-annotations/dependencymanager-annotations-spellchecker.html Propchange: websites/staging/felix/trunk/content/ ------------------------------------------------------------------------------ --- cms:source-revision (original) +++ cms:source-revision Sun Sep 22 13:49:39 2013 @@ -1 +1 @@ -1525176 +1525358 Modified: websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-dependency-manager/apache-felix-dependency-manager-using-annotations/dependencymanager-annotations-spellchecker.html ============================================================================== --- websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-dependency-manager/apache-felix-dependency-manager-using-annotations/dependencymanager-annotations-spellchecker.html (original) +++ websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-dependency-manager/apache-felix-dependency-manager-using-annotations/dependencymanager-annotations-spellchecker.html Sun Sep 22 13:49:39 2013 @@ -309,16 +309,17 @@ Aspects can be plugged to an existing se dynamically. This is transparent, and the clients using the existing service are not interrupted, they are just rebound with the aspect service.

As an example, we go back to our SpellChecker application, and we are now looking at the -DictionaryAspect class. This class uses the @Aspect{}Service annotation in order to add -some custom words to an English DictionaryService (with the service property lang=en). -The Extra words to add to the English Dictionary will be configured from ConfigAdmin.
-That's why the class also uses a @ConfigurationDependency annotation:

+DictionaryAspect class. This class uses the @Aspect Service annotation in +order to add some custom words to an English DictionaryService (with the +service property lang=en). +The Extra words to add to the English Dictionary will be configured from +ConfigAdmin. That's why the class also uses a @ConfigurationDependency annotation:

@AspectService(ranking = 10, filter = "(lang=en)")
 public class DictionaryAspect implements DictionaryService {
    /**
     * This is the service this aspect is applying to.
     */
-   private DictionaryService m_originalDictionary;
+   private volatile DictionaryService m_originalDictionary;
 
    /**
     * We store all configured words in a thread-safe data structure, because ConfigAdmin may
@@ -393,7 +394,7 @@ Then click on Save. At this point, the E
 the aspect service. So, now, if  you type "spellcheck aspect", then the message 
 "word aspect is  correct" should be displayed.

- Rev. 1525171 by pderop on Fri, 20 Sep 2013 23:10:33 +0000 + Rev. 1525358 by pderop on Sun, 22 Sep 2013 13:49:25 +0000
Apache Felix, Felix, Apache, the Apache feather logo, and the Apache Felix project