You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by re...@apache.org on 2013/08/27 15:15:28 UTC

svn commit: r1517810 - /stanbol/branches/commons-ng/commons/web/base/src/main/java/org/apache/stanbol/commons/web/base/writers/JsonLdSerializerProvider.java

Author: reto
Date: Tue Aug 27 13:15:27 2013
New Revision: 1517810

URL: http://svn.apache.org/r1517810
Log:
STANBOL-1094: using scr annotations instead of javadoc

Modified:
    stanbol/branches/commons-ng/commons/web/base/src/main/java/org/apache/stanbol/commons/web/base/writers/JsonLdSerializerProvider.java

Modified: stanbol/branches/commons-ng/commons/web/base/src/main/java/org/apache/stanbol/commons/web/base/writers/JsonLdSerializerProvider.java
URL: http://svn.apache.org/viewvc/stanbol/branches/commons-ng/commons/web/base/src/main/java/org/apache/stanbol/commons/web/base/writers/JsonLdSerializerProvider.java?rev=1517810&r1=1517809&r2=1517810&view=diff
==============================================================================
--- stanbol/branches/commons-ng/commons/web/base/src/main/java/org/apache/stanbol/commons/web/base/writers/JsonLdSerializerProvider.java (original)
+++ stanbol/branches/commons-ng/commons/web/base/src/main/java/org/apache/stanbol/commons/web/base/writers/JsonLdSerializerProvider.java Tue Aug 27 13:15:27 2013
@@ -35,6 +35,8 @@ import org.apache.clerezza.rdf.core.Type
 import org.apache.clerezza.rdf.core.UriRef;
 import org.apache.clerezza.rdf.core.serializedform.SerializingProvider;
 import org.apache.clerezza.rdf.core.serializedform.SupportedFormat;
+import org.apache.felix.scr.annotations.Component;
+import org.apache.felix.scr.annotations.Service;
 import org.apache.stanbol.commons.jsonld.JsonLd;
 import org.apache.stanbol.commons.jsonld.JsonLdCommon;
 import org.apache.stanbol.commons.jsonld.JsonLdProperty;
@@ -49,10 +51,9 @@ import org.slf4j.LoggerFactory;
  * Implements a <a href="http://json-ld.org/">JSON-LD</a> serialization of a Clerezza
  * {@link TripleCollection}.<br>
  *
- * @scr.component immediate="true"
- * @scr.service
- *                 interface="org.apache.clerezza.rdf.core.serializedform.SerializingProvider"
  */
+@Component
+@Service(SerializingProvider.class)
 @SupportedFormat(JsonLdSerializerProvider.SUPPORTED_FORMAT)
 public class JsonLdSerializerProvider implements SerializingProvider {