/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package org.apache.sling.launchpad.testservices.war.servlets;

import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Properties;
import org.apache.felix.scr.annotations.Property;
import org.apache.felix.scr.annotations.Service;

/** Example/test Sling Servlet registered with two selectors */
@Component(immediate=true, metatype=false)
@Service(value=javax.servlet.Servlet.class)
@Properties({
    @Property(name="service.description", value="Selector Test Servlet"),
    @Property(name="service.vendor", value="The Apache Software Foundation"),
    @Property(name="sling.servlet.resourceTypes", value="sling/servlet/default"),
    @Property(name="sling.servlet.selectors", value={"WAR_TEST_SEL_1","WAR_TEST_SEL_2"}),
    @Property(name="sling.servlet.extensions", value="txt")
})
@SuppressWarnings("serial")
public class SelectorServlet extends TestServlet {
}
@@ -879,197 +879,52 @@
 org.
-apache.felix.scr.annotations.Component;%0Aimport org.apache.felix.scr.annotations.Properties;%0Aimport org.apache.felix.scr.annotations.Property;%0Aimport org.apache.felix.scr.annotations.Service
+osgi.service.component.annotations.Component
 ;%0A%0A/
@@ -1017,39 +1017,18 @@
 ue, 
-metatype=false)%0A@Service(value=
+service = 
 java
@@ -1054,43 +1054,27 @@
 lass
-)%0A@P
+,%0Ap
 ropert
-ies(
+y = 
 %7B%0A    
-@Property(name=
 %22ser
@@ -1089,26 +1089,17 @@
 cription
-%22, value=%22
+=
 Selector
@@ -1112,38 +1112,22 @@
 Servlet%22
-)
 ,%0A    
-@Property(name=
 %22service
@@ -1133,26 +1133,17 @@
 e.vendor
-%22, value=%22
+=
 The Apac
@@ -1165,38 +1165,22 @@
 ndation%22
-)
 ,%0A    
-@Property(name=
 %22sling.s
@@ -1199,26 +1199,17 @@
 rceTypes
-%22, value=%22
+=
 sling/se
@@ -1222,38 +1222,22 @@
 default%22
-)
 ,%0A    
-@Property(name=
 %22sling.s
@@ -1256,19 +1256,9 @@
 tors
-%22, value=%7B%22
+=
 WAR_
@@ -1269,17 +1269,46 @@
 _SEL_1%22,
-%22
+%0A    %22sling.servlet.selectors=
 WAR_TEST
@@ -1318,31 +1318,14 @@
 L_2%22
-%7D)
 ,%0A    
-@Property(name=
 %22sli
@@ -1349,23 +1349,13 @@
 ions
-%22, value=%22
+=
 txt%22
-)
 %0A%7D)%0A

Migrate to R6 annotations