Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D2AA2200C84 for ; Mon, 29 May 2017 17:04:45 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CCB25160BCE; Mon, 29 May 2017 15:04:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1FC88160BC2 for ; Mon, 29 May 2017 17:04:44 +0200 (CEST) Received: (qmail 18342 invoked by uid 500); 29 May 2017 15:04:44 -0000 Mailing-List: contact dev-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list dev@cayenne.apache.org Received: (qmail 18323 invoked by uid 99); 29 May 2017 15:04:43 -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; Mon, 29 May 2017 15:04:43 +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 6DE7018002C for ; Mon, 29 May 2017 15:04:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.821 X-Spam-Level: X-Spam-Status: No, score=-0.821 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=objectstyle.org header.b=XJJyTO2U; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=BYXCbsPO Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id yLC7w-ADdXTM for ; Mon, 29 May 2017 15:04:42 +0000 (UTC) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 2889D5F3F5 for ; Mon, 29 May 2017 15:04:42 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id A727620822 for ; Mon, 29 May 2017 11:04:41 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Mon, 29 May 2017 11:04:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=objectstyle.org; h=content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=8YGU4pmRZX3LjnW/sOYbFU39qTThpA8R7Y650F ug30I=; b=XJJyTO2UJUR0oCQrbXvFJsXdn/bmDJ965QkWt83Q7gomIziGO3dCGc Sk7423L6fQng925OAnNQI8I1Pz4nTA0k207jlPffDan/Je8qq+vfvZO4nCuAKlqr PCu7qi9iRP4U7YpGh9pE+g1pOixou3zrp7Fkwa9jSeDT5XZ+v6xxQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=8YGU4pmRZX3LjnW/sO YbFU39qTThpA8R7Y650Fug30I=; b=BYXCbsPOOP9AWyUH7ZAF2nkyM9LoNFwEMd XxneJCP71QzQTMG2WqKgRUmv+JGCkZ/AwMT1zWm0Hf0gNIJUajw6bDChQf+wsfql XpnSlFTfuHD7Iqpuz19aTqv9s4a3QFi1UcW1OtiuuUpHPz/sxLTgGPx3uWFbzxko 1TnbdyOuX0vd3v0VeqkZWxT3TXH0zq9Bt6f3SY0yr2ICYcPBtKMzljZOX+/qwmwg Ux0YJJVb2C7p6VRn6mJ+7Bl1Tbs+U0XIAnbWIOQedd+qV3H4+trQKKC0K6unT/I1 MQvCtNC6NLQGKVWfHtQQDl4J8o+5mMdKI7Qff2wkBCusJeZ2Ejow== X-ME-Sender: X-Sasl-enc: k4cHxJZcwVqqohXkmR3h3kDXOyzpWO+imurG1wp5yi/i 1496070281 Received: from [192.168.1.184] (unknown [37.17.49.228]) by mail.messagingengine.com (Postfix) with ESMTPA id 434F7240B0 for ; Mon, 29 May 2017 11:04:41 -0400 (EDT) From: Andrus Adamchik Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Module "builders" to "extenders" Message-Id: <568B04A3-15B5-451E-AEF7-7687A73F96C2@objectstyle.org> Date: Mon, 29 May 2017 18:04:40 +0300 To: dev@cayenne.apache.org X-Mailer: Apple Mail (2.3273) archived-at: Mon, 29 May 2017 15:04:46 -0000 Just squeezed an 11th hour change before we freeze the Beta: = https://github.com/apache/cayenne/commit/175ec07f69446ea89c8ed8ec338b29d45= f95821e = https://github.com/apache/cayenne/commit/ab6554dc6412dda640ebfcd6a4797cb0a= 1193f5f The goal is to eliminate a new API inconsistency. With the introduction = of auto-lodable modules, classes that we used to call FooModuleBuilder = no longer build a FooModule. The module is loaded automatically and can = not be changed. The corresponding "builder" builds a separate custom = module with extensions. This pattern is present in: 1. CommitLogModuleBuilder 2. CacheInvalidationModuleBuilder 3. CryptoModuleBuilder (4. OsgiModuleBuilder... if we make it auto-loadable) Instead of a builder there's now an "extender", which is otherwise = analogous to the builder, and the invocation looks like this: Module extensions =3D=20 CommitLogModule.extend().addListener(mockListener).module(); I changed #1, and if there are no objections will change #2 and #3.=20 Andrus