From dev-return-88589-archive-asf-public=cust-asf.ponee.io@sling.apache.org Mon May 14 17:23:12 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id B3CAA180627 for ; Mon, 14 May 2018 17:23:11 +0200 (CEST) Received: (qmail 51152 invoked by uid 500); 14 May 2018 15:23:10 -0000 Mailing-List: contact dev-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list dev@sling.apache.org Received: (qmail 51141 invoked by uid 99); 14 May 2018 15:23:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2018 15:23:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 33C841A03AE for ; Mon, 14 May 2018 15:23:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -101.511 X-Spam-Level: X-Spam-Status: No, score=-101.511 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ySzL6KC9HG-1 for ; Mon, 14 May 2018 15:23:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 4A38E5FB3C for ; Mon, 14 May 2018 15:23:06 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D59CDE0110 for ; Mon, 14 May 2018 15:23:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 40B8B217A5 for ; Mon, 14 May 2018 15:23:00 +0000 (UTC) Date: Mon, 14 May 2018 15:23:00 +0000 (UTC) From: "Konrad Windszus (JIRA)" To: dev@sling.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SLING-7624) Add OSGi7 component property annotations for Servlet and Filter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SLING-7624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16474356#comment-16474356 ] Konrad Windszus commented on SLING-7624: ---------------------------------------- I am trying to extract the prefix to a dedicated single element annotation. That would also make it possible to convert {{SlingServletByPath}} to a single element annotation. The problem is the class name as we need to generate a property called {{sling.servlet.path}}. Therefore we could either name that annotation # {{SlingServletPath}} (not a very nice name, imho, as this doesn't really tell that this actually registers this component as Sling servlet) or # {{ServletPath}} with {{PREFIX_= "sling."}} or # {{Path}} with {{PREFIX_= "sling.servlet"}} None of those options are particularly appealing to me. [~cziegeler] WDYT? > Add OSGi7 component property annotations for Servlet and Filter > --------------------------------------------------------------- > > Key: SLING-7624 > URL: https://issues.apache.org/jira/browse/SLING-7624 > Project: Sling > Issue Type: New Feature > Components: Servlets > Reporter: Konrad Windszus > Assignee: Konrad Windszus > Priority: Major > > Previously there were annotations hosted at Felix for Sling Servlets/Filters as custom Felix SCR annotations (https://github.com/apache/felix/tree/trunk/tools/org.apache.felix.scr.annotations/src/main/java/org/apache/felix/scr/annotations/sling). With OSGi R7 and DS 1.4 component property annotations are specified. Sling should provide those annotations in a dedicated new artifact. Compare also with FELIX-5396. > Those are supported in the upcoming bnd 4.0 (https://github.com/bndtools/bnd/issues/2163). -- This message was sent by Atlassian JIRA (v7.6.3#76005)