Return-Path: X-Original-To: apmail-reef-dev-archive@minotaur.apache.org Delivered-To: apmail-reef-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 354DC18C96 for ; Thu, 25 Feb 2016 18:30:20 +0000 (UTC) Received: (qmail 37286 invoked by uid 500); 25 Feb 2016 18:30:20 -0000 Delivered-To: apmail-reef-dev-archive@reef.apache.org Received: (qmail 37261 invoked by uid 500); 25 Feb 2016 18:30:20 -0000 Mailing-List: contact dev-help@reef.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@reef.apache.org Delivered-To: mailing list dev@reef.apache.org Received: (qmail 37231 invoked by uid 99); 25 Feb 2016 18:30:19 -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; Thu, 25 Feb 2016 18:30:19 +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 7925CC0838 for ; Thu, 25 Feb 2016 18:30:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.999 X-Spam-Level: X-Spam-Status: No, score=0.999 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H2=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=weimo-de.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id RiEE1c9cVq0p for ; Thu, 25 Feb 2016 18:30:17 +0000 (UTC) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id CCD175F640 for ; Thu, 25 Feb 2016 18:30:17 +0000 (UTC) Received: by mail-pa0-f47.google.com with SMTP id fy10so36206079pac.1 for ; Thu, 25 Feb 2016 10:30:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=weimo-de.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=FnjQFa81aj6WO3MlqXxNJfZwTwicMv7/XZepsWIH0Ec=; b=0714FOkM1n+eyOr5tRsnXYUYGuE0hKC1QkjBI/0mXGxT6q6eZ5OrsKG9knoxqDHRZY nYFdqL+yMhux/XPgkvK/PuMg/hU24uWb1ciBqp47oGPl966XWZWEXV+3zUJOs4uKuPVT 9gzIV4N9SGqAJt6lGM1mI6m5NLv5L+OqPPHAxrgQ4VTFJwzicL6EYmVRzjc0KUq0EMwe rCU6Z24zaEDpUViwntZ/U1uTGTyI6vSlX4wrSYArWdivkpkcwaKqaGhKgWoc891ZlIiL 6fvTlnkzaBQpyRWqAFnZyfXLR/iKLjgpyyq90R5IMJ3p75UyF5b+GeAyd5yZOLSkXwkk S9+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=FnjQFa81aj6WO3MlqXxNJfZwTwicMv7/XZepsWIH0Ec=; b=T4tvZ/yX5hWRbW5YZ7+nvUkXuRS23wnaaV3/2COaaff/rUtsz2cXqWOBMyIbv9EBTJ hxGs+42ClusByv6JjL5HNy6WyITthK0ubboNTSUXI+GG4H7WeF537U3mfoifjQt/bqTj hYytDMTmJAHyc4+l/a2P7WqYm3yfRst1dMQIIEEzQeTS3xULDW5yOFZ32ga0pCed+XvN Oeo11qHLL7BFGYs4skIKY6NSZlSditLzIxYBgdIhdWf1ZBy5VxRpbOS+2JXUrgxO9p/l KLS8vq7Fi33mSLHF+YmIzHK1623ITPf3qg3AS/sSqZinlNczhi2zRavC8asvuKkrZl7w 7ESQ== X-Gm-Message-State: AG10YOQRPLq1doJGCiUhb8/f44CLSVbLL5I5X1hX5T5jKl7dEi648ZpYjuwUHgjdSbm/KQ== X-Received: by 10.66.250.199 with SMTP id ze7mr65364153pac.103.1456425011414; Thu, 25 Feb 2016 10:30:11 -0800 (PST) Received: from ?IPv6:2001:4898:f0:52:74:960:c642:4f? ([2001:4898:80e8:2::6e7]) by smtp.googlemail.com with ESMTPSA id h65sm13815265pfh.43.2016.02.25.10.30.10 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 25 Feb 2016 10:30:10 -0800 (PST) Subject: Re: REEF Services To: dev@reef.apache.org References: <56B0F0BB.9090503@weimo.de> <56C358B0.1040001@weimo.de> From: Markus Weimer X-Enigmail-Draft-Status: N1110 Message-ID: <56CF4831.5010501@weimo.de> Date: Thu, 25 Feb 2016 10:30:09 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hi, Shravan and I just had a bit of a brainstorm on this least clear concept of the REEF API. Here is what we came up with as a proposal: (1) Remove the explicit notion of `Service` from the API. If an application wants to make sure objects are instantiated before the Tasks or other Contexts are spawned, those objects can be depended upon by the `ContextStart` handlers. (2) Rename `ServiceConfiguration` and `ServiceInjector` and related items to `SharedContextConfiguration` and `SharedContextInjector`. That way, their function is clear: Stuff in them will be inherited by Contexts spawned. Stuff in the `ContextConfiguration` and `ContextInjector` won't be. I use "stuff" here as an overloaded technical term: It denotes all the bindings inside a `Configuration` as well as all the already created instances in an `Injector. Shravan, did I capture our conversation correctly? Does this make sense to anybody but Shravan & me? Markus