From dev-return-94319-archive-asf-public=cust-asf.ponee.io@sling.apache.org Tue Dec 11 19:11:23 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 99F37180671 for ; Tue, 11 Dec 2018 19:11:22 +0100 (CET) Received: (qmail 63959 invoked by uid 500); 11 Dec 2018 18:11:21 -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 63945 invoked by uid 99); 11 Dec 2018 18:11:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Dec 2018 18:11:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 700E0180A9F for ; Tue, 11 Dec 2018 18:11:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.701 X-Spam-Level: X-Spam-Status: No, score=-0.701 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id PnmHtQB-pHWT for ; Tue, 11 Dec 2018 18:11:19 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4B9F260EAD for ; Tue, 11 Dec 2018 18:11:18 +0000 (UTC) Received: from [172.27.183.103] ([194.127.28.7]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lz3rc-1haWDv3JNg-014DBa for ; Tue, 11 Dec 2018 19:11:11 +0100 From: Konrad Windszus Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Subject: Re: [servlets] SLING-8170 - Allow Sling servlets to declare a resource super type Date: Tue, 11 Dec 2018 19:11:10 +0100 References: To: dev@sling.apache.org In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3445.101.1) X-Provags-ID: V03:K1:jilfVhU6icPLLlKLeLQDviNyL8erPO5/dfEKYZfwkc+CNH05FDe 5gqN3BB9L9ci613fjwDnpLpsUptLL2WNH+jd6NE+XBGpArORo76OzrUyj2h5UN3UahjDZvB rnheSIyLkwtSWPxbZOVtavYGonvNtDJKIHeN0RZU5qv1OwIyv32C8U7dO1M+ktJRdFmqe0V y6g0z0CwzrFGY/FinX5HA== X-UI-Out-Filterresults: notjunk:1;V03:K0:aLnLY1v2V1c=:dkdy68OXQyLeQq0kRv9ooS W4ZmkiHyc2SDvxXOOivt09o4M3Qj+N6dpAGL3SLNRQgiulUnJJZSEYgFRYsdk1RKf7gsHdy0H q8NppLC1dVUx+doDiekOUsMKqA3Tzfi7KSUv1ydLy/L2st+nSmlpTxV4/KwzqT8cjlYhO65lz B0SQO24rtKggUkm8GBwpbK9XJ5OBdFtLK0KduTvvqZxT8FpniEMd3ixTi9GqUPUI31kK8KiDN XeUjyLQMKNEiyJhasHpRhE+VIAs0riAOhPqH5JTVRqmGVWyt6UBCWXF5ZRQ6Q8uPz6i0fo85K vv8978Ggi7P7SlL5hoCakIt0rjXj0eDP0YDOV2MYt5IvdpDOS7QQkPe+/rwAqgHnmPFMVeNwY +r+9aMPThO8Wk3giqBnnlb0DO3D1s4f8hnSmzExLh6+GuqHpHk1g16OmoIJ8pX7oWvqWsGzUN Y7rmkynN8ouTZ4PJJ1+Xf57mktov1fa3QOnbecBSYJxcCzEsdzML1QG+A6IIKiAeSQM3NzoP2 7/2fYbQZic/iZ7STw8/7dvfRCJhlXswKipnZfZoBL5ZWpKUgapAHddgcw35YZkfE9NxkPBAhP xd1nUMLQ4QQfrK6dNNi0vZG0YdobKQcZFgBQv1mcijNeFf2nbUx0v5MqnH8TE/k6jEKVQQil4 zNXBzSNAUKMqwFuLFV5WWw1i9pCih120gJHl0n1CLNtHPDHPHqYiKzNzetuAtO5lSbe/8Osed /ZBlIoL6RyzcUhUS90zMm7iWYkQQ0KZv5T8/N/guim2wCY8SJ4WU8LhS5kgXiR7PKjF+VRvVI Jj8ijxuXS1rp4ZaGG0MyQTWWXrS93T0hGqw4koL4kcFdOxjSYnKycBkcKoXnU6fezUuZE7x9Z QsJCjcFfK31Mw7HE631aenuGbtKnWnsQKceRXXeINbzraeFReCZWECjnt6kDqw I am not sure I do understand 100% your use case: How are you supposed to do request dispatching to another servlet then? = Only in case request dispatching is used I see an actual benefit (to = only overwrite one part of a servlet but not another). There you would = need to rely on selectors (instead of the script name), right? Maybe you = can give a concrete example on where you think inheritance of servlets = would be useful. Or is your use case more in the AEM area where dialogs, component = definitions, ... could be reused? Thanks, Konrad > On 11. Dec 2018, at 14:58, Radu Cotescu wrote: >=20 > Hi, >=20 > I=E2=80=99ve recently opened 2 PRs for Apache Sling API and Apache = Sling Servlets Resolver. The goal is the ability to define a way to = overlay servlets / delegate to other servlets at runtime [0], similar to = what=E2=80=99s already available for scripts. Besides the overlaying = functionality, this will allow bundled scripts (optionally precompiled) = to be able to delegate rendering to pre-existing servlets / scripts that = are not necessarily registered through the new Apache Sling Scripting = Bundle Tracker [1]. >=20 > Please let me know what you think. >=20 > Regards, > Radu >=20 > [0] - https://issues.apache.org/jira/browse/SLING-8170 = > [1] - = https://github.com/apache/sling-org-apache-sling-scripting-bundle-tracker = >=20