You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/10/18 23:23:03 UTC
[sling-org-apache-sling-commons-html] 17/36: SLING-2363 : Replace
JavaDoc SCR annotations with Java SCR annotations
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-html.git
commit 38276b9722e9b50daa2db6dd855e83378efa7f7e
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Wed Jul 4 07:40:20 2012 +0000
SLING-2363 : Replace JavaDoc SCR annotations with Java SCR annotations
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1357127 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 4 ++++
.../java/org/apache/sling/commons/html/impl/HtmlParserImpl.java | 9 ++++-----
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/pom.xml b/pom.xml
index 270cb07..f7b4281 100644
--- a/pom.xml
+++ b/pom.xml
@@ -87,5 +87,9 @@
<artifactId>tagsoup</artifactId>
<version>1.2</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>org.apache.felix.scr.annotations</artifactId>
+ </dependency>
</dependencies>
</project>
diff --git a/src/main/java/org/apache/sling/commons/html/impl/HtmlParserImpl.java b/src/main/java/org/apache/sling/commons/html/impl/HtmlParserImpl.java
index ed9a28d..d3cd9b8 100644
--- a/src/main/java/org/apache/sling/commons/html/impl/HtmlParserImpl.java
+++ b/src/main/java/org/apache/sling/commons/html/impl/HtmlParserImpl.java
@@ -21,6 +21,8 @@ package org.apache.sling.commons.html.impl;
import java.io.IOException;
import java.io.InputStream;
+import org.apache.felix.scr.annotations.Component;
+import org.apache.felix.scr.annotations.Service;
import org.apache.sling.commons.html.HtmlParser;
import org.ccil.cowan.tagsoup.Parser;
import org.w3c.dom.Document;
@@ -29,11 +31,8 @@ import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.ext.LexicalHandler;
-/**
- * @scr.component metatype="false"
- * @scr.service interface="HtmlParser"
- *
- */
+@Component
+@Service(value=HtmlParser.class)
public class HtmlParserImpl implements HtmlParser {
/**
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.