sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [sling-org-apache-sling-junit-core] kwin commented on a change in pull request #1: [SLING-8246]Fix server side test hang with repeat "Waiting for the following bund…
Date Sun, 05 Jan 2020 12:34:14 GMT
kwin commented on a change in pull request #1: [SLING-8246]Fix server side test hang with repeat
"Waiting for the following bund…

 File path: src/main/java/org/apache/sling/junit/impl/servlet/
 @@ -16,34 +16,49 @@
-import org.apache.felix.scr.annotations.Component;
-import org.apache.felix.scr.annotations.Property;
-import org.apache.felix.scr.annotations.Reference;
-import org.jacoco.agent.rt.IAgent;
-import org.osgi.service.component.ComponentContext;
-import org.osgi.service.http.HttpService;
-import org.osgi.service.http.NamespaceException;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+import javax.servlet.Servlet;
 import javax.servlet.ServletException;
 import javax.servlet.http.HttpServlet;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
-import java.util.Dictionary;
+import org.jacoco.agent.rt.IAgent;
+import org.osgi.framework.Constants;
+import org.osgi.service.component.annotations.Activate;
+import org.osgi.service.component.annotations.Component;
+import org.osgi.service.component.annotations.ConfigurationPolicy;
+import org.osgi.service.component.annotations.Deactivate;
+import org.osgi.service.component.annotations.Modified;
+import org.osgi.service.component.annotations.Reference;
+import org.osgi.service.metatype.annotations.AttributeDefinition;
+import org.osgi.service.metatype.annotations.Designate;
+import org.osgi.service.metatype.annotations.ObjectClassDefinition;
+import org.osgi.service.http.HttpService;
+import org.osgi.service.http.NamespaceException;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
  * This servlet exposes JaCoCo code coverage data over HTTP. See {@link #EXPLAIN} for usage
  * which is also available at /system/sling/jacoco after installing this servlet with the
default settings.
-@Component(immediate = true, metatype = true)
+    service = Servlet.class,
+    immediate = true,
+    configurationPolicy = ConfigurationPolicy.OPTIONAL,
+    property = {
+        Constants.SERVICE_DESCRIPTION+"=This servlet exposes JaCoCo (
code coverage data.",
+        "servlet.path=/system/sling/jacoco"
 Review comment:
   no need for that

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

View raw message