felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r918517 - /felix/trunk/dependencymanager/samples.annotation/src/main/java/org/apache/felix/dm/samples/annotation/DictionaryAspect.java
Date Wed, 03 Mar 2010 15:36:12 GMT
Author: marrs
Date: Wed Mar  3 15:36:12 2010
New Revision: 918517

URL: http://svn.apache.org/viewvc?rev=918517&view=rev
Log:
Updated the dictionary aspect sample.

Modified:
    felix/trunk/dependencymanager/samples.annotation/src/main/java/org/apache/felix/dm/samples/annotation/DictionaryAspect.java

Modified: felix/trunk/dependencymanager/samples.annotation/src/main/java/org/apache/felix/dm/samples/annotation/DictionaryAspect.java
URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager/samples.annotation/src/main/java/org/apache/felix/dm/samples/annotation/DictionaryAspect.java?rev=918517&r1=918516&r2=918517&view=diff
==============================================================================
--- felix/trunk/dependencymanager/samples.annotation/src/main/java/org/apache/felix/dm/samples/annotation/DictionaryAspect.java
(original)
+++ felix/trunk/dependencymanager/samples.annotation/src/main/java/org/apache/felix/dm/samples/annotation/DictionaryAspect.java
Wed Mar  3 15:36:12 2010
@@ -19,18 +19,13 @@
 package org.apache.felix.dm.samples.annotation;
 
 import org.apache.felix.dm.annotation.api.AspectService;
-import org.apache.felix.dm.annotation.api.Param;
 import org.apache.felix.dm.annotation.api.ServiceDependency;
-import org.osgi.framework.Constants;
 import org.osgi.service.log.LogService;
 
 /**
  * This aspect wraps a Dictionary and checks the "aspect" word on behalf of it.
  */
-@AspectService(
-    filter="(!(" + Constants.SERVICE_RANKING + "=*))", 
-    properties={@Param(name=Constants.SERVICE_RANKING, value="1")}
-)
+@AspectService( ranking = 10 )
 public class DictionaryAspect implements DictionaryService
 {
     /**



Mime
View raw message