From dev-return-89166-archive-asf-public=cust-asf.ponee.io@sling.apache.org Wed Jun 6 17:58:54 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 9F66E180671 for ; Wed, 6 Jun 2018 17:58:53 +0200 (CEST) Received: (qmail 28639 invoked by uid 500); 6 Jun 2018 15:58:47 -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 28628 invoked by uid 99); 6 Jun 2018 15:58:47 -0000 Received: from mail-relay.apache.org (HELO mailrelay1-lw-us.apache.org) (207.244.88.152) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2018 15:58:47 +0000 Received: from mail-lf0-f44.google.com (mail-lf0-f44.google.com [209.85.215.44]) by mailrelay1-lw-us.apache.org (ASF Mail Server at mailrelay1-lw-us.apache.org) with ESMTPSA id 9D0ACCC5 for ; Wed, 6 Jun 2018 15:58:46 +0000 (UTC) Received: by mail-lf0-f44.google.com with SMTP id y20-v6so9950119lfy.0 for ; Wed, 06 Jun 2018 08:58:46 -0700 (PDT) X-Gm-Message-State: APt69E2lxJ7patJCy3hECQR0F/uCwv6eorLuK/rpZlkQgG8SwafuHIud GGcfrwdFmnaixHWbmxKrdEgl4pBKfTX5k5DBbf0= X-Google-Smtp-Source: ADUXVKLN4Ji+q0Uegb0Uxnci21r2RmRuOellslKqJNhoaYrtc0pAOWUFs1etHemJeUyx1UFm7RPWPBQ8jhXcnJmwKFE= X-Received: by 2002:a19:944f:: with SMTP id w76-v6mr2373245lfd.90.1528300725478; Wed, 06 Jun 2018 08:58:45 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:9149:0:0:0:0:0 with HTTP; Wed, 6 Jun 2018 08:58:44 -0700 (PDT) In-Reply-To: <7c834cb9-a605-660a-a4c1-594dd45ef3d2@apache.org> References: <1527777581.3957949.1391850344.391128AC@webmail.messagingengine.com> <1528133502.624923.1395995448.4B62E915@webmail.messagingengine.com> <1528135325.3617715.1396038240.069F8712@webmail.messagingengine.com> <1528136689.640242.1396063528.197DCEBC@webmail.messagingengine.com> <1528290826.1346434.1398387800.6D56AD0A@webmail.messagingengine.com> <7c834cb9-a605-660a-a4c1-594dd45ef3d2@apache.org> From: Bertrand Delacretaz Date: Wed, 6 Jun 2018 17:58:44 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [DISCUSSION][API][PROPOSAL] Adding Stream generator to Sling API To: dev Content-Type: text/plain; charset="UTF-8" On Wed, Jun 6, 2018 at 3:53 PM, Carsten Ziegeler wrote: > ...I see the value of having this as a library > everyone can use. But I think we usually should keep library code > separate from the pure (in lack of a better word) api like the resource > api... I agree with that. IIUC the current idea is to add a Resource.stream(predicate) method to the Sling API, but that could also be done with a distinct ResourceStreamer.stream(predicate) object, right? That doesn't make the API much more complicated and has the big benefit of being a distinct module that can evolve independently. Sorry if I missed earlier discussions, and I hope I'm not contradicting my past self ;-) -Bertrand