From dev-return-93256-archive-asf-public=cust-asf.ponee.io@sling.apache.org Wed Nov 7 09:33:06 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 A3634180649 for ; Wed, 7 Nov 2018 09:33:05 +0100 (CET) Received: (qmail 23360 invoked by uid 500); 7 Nov 2018 08:33:04 -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 23347 invoked by uid 99); 7 Nov 2018 08:33:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Nov 2018 08:33:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 0674DCD178 for ; Wed, 7 Nov 2018 08:33:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.695 X-Spam-Level: * X-Spam-Status: No, score=1.695 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-0.104, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id X-bJb5b9dtWX for ; Wed, 7 Nov 2018 08:33:01 +0000 (UTC) Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 2FEBA5F58F for ; Wed, 7 Nov 2018 08:33:01 +0000 (UTC) Received: by mail-wm1-f51.google.com with SMTP id 124-v6so8203924wmw.0 for ; Wed, 07 Nov 2018 00:33:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=DUtosth1ulnqL1qekc1dbot7wgsMPDdAs5b1vuH2pLg=; b=pqq/K7SRBUyJsc09lsnvxALLxFHYjTw1CcWO4NT2Z491s8tm0r5UkjIXSzmoE9qM2r Kfr6taTbh3FDdIr4xnPy9/I7idiBHxV2C1rJhR8XtJT0PEg9KRzOBuzJgExe8H5A+zG3 1vzW6vVrz4cpxNzfqp2jKtupRksUnQadsEr1Lumt0THvPrRw6GuUn1xpFhElQY3Xdrg9 0zer+NtVp/iHde/mvzWuH5QXJbHP3FEsDyjRpTM70gzyo2f9/A+SglC4JvCo1saCR4nf DAjGV0clZKqHXwITyLZTcy4WqjhjzK+vinVCtJ4bSvxodesV2JBSJT9BMGKqxtwrikBV 9+AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=DUtosth1ulnqL1qekc1dbot7wgsMPDdAs5b1vuH2pLg=; b=rsS18leNJ05qyaqpl5GGVFSPi5MTfn3MBDggD07kTEtTbf3xHPKccLVW+/F6ORrlB3 /Kyq/sbQkIvWHXw1WVkuakQ7op18BpR9XXNRMKpGn0xABteFJqM+Uc9Q9e7s/E8Z4Za7 jZQhl8C+uWokDOynqiOLluEOFaBOfkJ1fgryB4VbJmNAm4JkV+r5JN3wHGbDONAi/4sk 74X78p43v38/JWZGnJ0S+lWHJ4EcK9uIDFu9Xi2p4BOWAIpy+NYZDP/1dtHpI5Xmn+qJ fsICVSz2Gr+GbqpEpBPssxB4eAkPLysEBS0WkqZY/fL1qMKQlB1H52Em2rwFPt0mDfMF YCkg== X-Gm-Message-State: AGRZ1gIZ/GQRwOfhYpTGWcYXE76YOrKFvmf8Vs0Dx9zlKrbc62k1JiuD 9qhP26RG/ogh9Bm2ST/IteLW1a+jlI59oCvsRU98eNV+25w= X-Google-Smtp-Source: AJdET5f1U6lSw/HT6aPdadFd7sV+Dkaue4ydnkEAsVp1HPpbDXDrvdYoKomwXnYdPXNfurDPGylLKM7r0pCJx0VbRnY= X-Received: by 2002:a1c:1109:: with SMTP id 9-v6mr1080808wmr.146.1541579580530; Wed, 07 Nov 2018 00:33:00 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: David Bosschaert Date: Wed, 7 Nov 2018 08:32:49 +0000 Message-ID: Subject: Re: [Feature Model] Initial API Regions implementation To: dev@sling.apache.org Content-Type: multipart/alternative; boundary="0000000000004a64d3057a0ef74d" --0000000000004a64d3057a0ef74d Content-Type: text/plain; charset="UTF-8" Hi all, If nobody objects I'd like to create two new Sling Git Repositories for this: sling-org-apache-sling-feature-extension-apiregions for the extension handlers and sling-org-apache-sling-feature-apiregions for the runtime framework extension bundle. Are there any sling-specific instructions on how to create these repos? Best regards David On Tue, 6 Nov 2018 at 15:50, David Bosschaert wrote: > Hi all, > > Over the past little while I have worked on an implementation for a > runtime enforcement component for API Regions for Sling Features [1]. > > The implementation is based on 2 components. > > a. Merge/PostProcessor handlers that work on the 'api-regions' section in > the feature files. These components know how to merge api-regions sections > into a target feature and the PostProcessor handlers generate a number of > properties files that drive the runtime enforcement implementation of this. > For details see [2]. > > b. The runtime component which is implemented as an OSGi Framework > extension bundle. Registers a ResolverHookFactory service with the > framework which is consulted by the OSGi resolver. The hook can prevent > certain resolutions from happening and is driven by the properties files > generated by the process in a. to enforce the regions as defined in the > feature files. For details see [3]. > > Currently these two new components [2][3] are in the sling-whiteboard, but > it would be great to graduate them out of there into their own Sling > repositories. Does the sling community think that this would be the right > thing to do? > > Many thanks, > > David > > [1] > https://github.com/apache/sling-org-apache-sling-feature/blob/master/apicontroller.md > [2] > https://github.com/apache/sling-whiteboard/tree/master/featuremodel/feature-extension-apiregions > [3] > https://github.com/apache/sling-whiteboard/tree/master/featuremodel/feature-apiregions > --0000000000004a64d3057a0ef74d--