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 76F93200C8E for ; Thu, 25 May 2017 01:07:48 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 759F7160BDA; Wed, 24 May 2017 23:07:48 +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 94D28160BB6 for ; Thu, 25 May 2017 01:07:47 +0200 (CEST) Received: (qmail 68046 invoked by uid 500); 24 May 2017 23:07:46 -0000 Mailing-List: contact commits-help@juneau.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@juneau.incubator.apache.org Delivered-To: mailing list commits@juneau.incubator.apache.org Received: (qmail 68037 invoked by uid 99); 24 May 2017 23:07:46 -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; Wed, 24 May 2017 23:07:46 +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 6D04A190DC2 for ; Wed, 24 May 2017 23:07:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -5.022 X-Spam-Level: X-Spam-Status: No, score=-5.022 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, 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 fZMvStX4mxWB for ; Wed, 24 May 2017 23:07:44 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 94AB360D87 for ; Wed, 24 May 2017 23:07:43 +0000 (UTC) Received: (qmail 67803 invoked by uid 99); 24 May 2017 23:07:42 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 May 2017 23:07:42 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6AC1EE3AA4; Wed, 24 May 2017 23:07:42 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jamesbognar@apache.org To: commits@juneau.incubator.apache.org Date: Wed, 24 May 2017 23:08:01 -0000 Message-Id: <8c9d6532e2bb4ce9bd7e484000defb45@git.apache.org> In-Reply-To: <0c63fc903d074ef2b66a7a76312ca5ae@git.apache.org> References: <0c63fc903d074ef2b66a7a76312ca5ae@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [21/32] incubator-juneau-website git commit: New @RequestBean annotation for remoteable interfaces. archived-at: Wed, 24 May 2017 23:07:48 -0000 http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/b852a3e8/content/site/apidocs/src-html/org/apache/juneau/Context.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/src-html/org/apache/juneau/Context.html b/content/site/apidocs/src-html/org/apache/juneau/Context.html index 206aef0..2800c07 100644 --- a/content/site/apidocs/src-html/org/apache/juneau/Context.html +++ b/content/site/apidocs/src-html/org/apache/juneau/Context.html @@ -38,34 +38,47 @@ 030 */ 031public abstract class Context { 032 -033 /** -034 * Constructor for this class. -035 * <p> -036 * Subclasses MUST implement the same constructor. -037 * -038 * @param propertyStore The factory that created this config. -039 */ -040 public Context(PropertyStore propertyStore) {} -041 -042 /** -043 * Returns the properties defined on this bean context as a simple map for debugging purposes. -044 * -045 * @return A new map containing the properties defined on this context. -046 */ -047 @Overrideable -048 public ObjectMap asMap() { -049 return new ObjectMap(); -050 } -051 -052 @Override /* Object */ -053 public final String toString() { -054 try { -055 return asMap().toString(JsonSerializer.DEFAULT_LAX_READABLE); -056 } catch (SerializeException e) { -057 return e.getLocalizedMessage(); -058 } -059 } -060} +033 private final PropertyStore propertyStore; +034 +035 /** +036 * Constructor for this class. +037 * <p> +038 * Subclasses MUST implement the same constructor. +039 * +040 * @param propertyStore The factory that created this config. +041 */ +042 public Context(PropertyStore propertyStore) { +043 this.propertyStore = PropertyStore.create(propertyStore); +044 } +045 +046 /** +047 * Returns the property store associated with this context. +048 * +049 * @return The property store associated with this context. +050 */ +051 protected PropertyStore getPropertyStore() { +052 return propertyStore; +053 } +054 +055 /** +056 * Returns the properties defined on this bean context as a simple map for debugging purposes. +057 * +058 * @return A new map containing the properties defined on this context. +059 */ +060 @Overrideable +061 public ObjectMap asMap() { +062 return new ObjectMap(); +063 } +064 +065 @Override /* Object */ +066 public final String toString() { +067 try { +068 return asMap().toString(JsonSerializer.DEFAULT_LAX_READABLE); +069 } catch (SerializeException e) { +070 return e.getLocalizedMessage(); +071 } +072 } +073}