aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lin...@apache.org
Subject svn commit: r942152 - /incubator/aries/sandbox/linsun/blueprint/blueprint-sample-annotation/src/main/java/org/apache/aries/blueprint/sample/Foo.java
Date Fri, 07 May 2010 17:15:24 GMT
Author: linsun
Date: Fri May  7 17:15:24 2010
New Revision: 942152

URL: http://svn.apache.org/viewvc?rev=942152&view=rev
Log:
[blueprint annotation]add an example to show annotate service property

Modified:
    incubator/aries/sandbox/linsun/blueprint/blueprint-sample-annotation/src/main/java/org/apache/aries/blueprint/sample/Foo.java

Modified: incubator/aries/sandbox/linsun/blueprint/blueprint-sample-annotation/src/main/java/org/apache/aries/blueprint/sample/Foo.java
URL: http://svn.apache.org/viewvc/incubator/aries/sandbox/linsun/blueprint/blueprint-sample-annotation/src/main/java/org/apache/aries/blueprint/sample/Foo.java?rev=942152&r1=942151&r2=942152&view=diff
==============================================================================
--- incubator/aries/sandbox/linsun/blueprint/blueprint-sample-annotation/src/main/java/org/apache/aries/blueprint/sample/Foo.java
(original)
+++ incubator/aries/sandbox/linsun/blueprint/blueprint-sample-annotation/src/main/java/org/apache/aries/blueprint/sample/Foo.java
Fri May  7 17:15:24 2010
@@ -27,9 +27,11 @@ import org.apache.aries.blueprint.annota
 import org.apache.aries.blueprint.annotation.Inject;
 import org.apache.aries.blueprint.annotation.RegistrationListener;
 import org.apache.aries.blueprint.annotation.Service;
+import org.apache.aries.blueprint.annotation.ServiceProperty;
 
 @Bean(id="foo")
-@Service(autoExport="all-classes",  
+@Service(autoExport="all-classes",
+        serviceProperties = @ServiceProperty(key="blueprint.annotation.sample", value="true"),
         registerationListener = @RegistrationListener(id="fooRegistrationListener", register="serviceRegistered",
unregister="serviceUnregistered"), 
         ranking=0)
 public class Foo implements Serializable {



Mime
View raw message