From commits-return-6272-archive-asf-public=cust-asf.ponee.io@tamaya.incubator.apache.org Mon Nov 19 23:55:47 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 81735180718 for ; Mon, 19 Nov 2018 23:55:46 +0100 (CET) Received: (qmail 41156 invoked by uid 500); 19 Nov 2018 22:55:45 -0000 Mailing-List: contact commits-help@tamaya.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tamaya.incubator.apache.org Delivered-To: mailing list commits@tamaya.incubator.apache.org Received: (qmail 41147 invoked by uid 99); 19 Nov 2018 22:55:45 -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; Mon, 19 Nov 2018 22:55:45 +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 3D070CF551 for ; Mon, 19 Nov 2018 22:55:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -11.701 X-Spam-Level: X-Spam-Status: No, score=-11.701 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5] autolearn=disabled 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 ToJF5Bp7Cs2v for ; Mon, 19 Nov 2018 22:55: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 667285FB81 for ; Mon, 19 Nov 2018 22:55:43 +0000 (UTC) Received: (qmail 40968 invoked by uid 99); 19 Nov 2018 22:55: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; Mon, 19 Nov 2018 22:55:42 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 61310E1304; Mon, 19 Nov 2018 22:55:42 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: anatole@apache.org To: commits@tamaya.incubator.apache.org Date: Mon, 19 Nov 2018 22:55:43 -0000 Message-Id: <237e345520264ff6a31f4a837b2c7b95@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/2] incubator-tamaya-extensions git commit: TAMAYA-362 Implement missing getSnapshot methods. TAMAYA-362 Implement missing getSnapshot methods. Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/commit/cd2707c2 Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/tree/cd2707c2 Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/diff/cd2707c2 Branch: refs/heads/master Commit: cd2707c27d5c0e527874eb51e34ecda97055deb3 Parents: 13cb423 Author: Aaron Coburn Authored: Mon Nov 19 23:53:22 2018 +0100 Committer: Anatole Tresch Committed: Mon Nov 19 23:53:22 2018 +0100 ---------------------------------------------------------------------- .../apache/tamaya/microprofile/MicroprofileAdapterTest.java | 7 ++++++- .../mutableconfig/internal/DefaultMutableConfiguration.java | 8 +++++++- 2 files changed, 13 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/cd2707c2/modules/microprofile/src/test/java/org/apache/tamaya/microprofile/MicroprofileAdapterTest.java ---------------------------------------------------------------------- diff --git a/modules/microprofile/src/test/java/org/apache/tamaya/microprofile/MicroprofileAdapterTest.java b/modules/microprofile/src/test/java/org/apache/tamaya/microprofile/MicroprofileAdapterTest.java index beaac77..bf47909 100644 --- a/modules/microprofile/src/test/java/org/apache/tamaya/microprofile/MicroprofileAdapterTest.java +++ b/modules/microprofile/src/test/java/org/apache/tamaya/microprofile/MicroprofileAdapterTest.java @@ -238,6 +238,11 @@ public class MicroprofileAdapterTest { public ConfigurationContext getContext() { throw new RuntimeException("Not implemented yet!"); } + + @Override + public ConfigurationSnapshot getSnapshot(Iterable keys) { + throw new RuntimeException("Not implemented yet!"); + } } -} \ No newline at end of file +} http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/cd2707c2/modules/mutable-config/src/main/java/org/apache/tamaya/mutableconfig/internal/DefaultMutableConfiguration.java ---------------------------------------------------------------------- diff --git a/modules/mutable-config/src/main/java/org/apache/tamaya/mutableconfig/internal/DefaultMutableConfiguration.java b/modules/mutable-config/src/main/java/org/apache/tamaya/mutableconfig/internal/DefaultMutableConfiguration.java index 0fe3e23..7069a6f 100644 --- a/modules/mutable-config/src/main/java/org/apache/tamaya/mutableconfig/internal/DefaultMutableConfiguration.java +++ b/modules/mutable-config/src/main/java/org/apache/tamaya/mutableconfig/internal/DefaultMutableConfiguration.java @@ -21,6 +21,7 @@ package org.apache.tamaya.mutableconfig.internal; import org.apache.tamaya.ConfigOperator; import org.apache.tamaya.ConfigQuery; import org.apache.tamaya.Configuration; +import org.apache.tamaya.ConfigurationSnapshot; import org.apache.tamaya.TypeLiteral; import org.apache.tamaya.mutableconfig.ChangePropagationPolicy; import org.apache.tamaya.mutableconfig.MutableConfiguration; @@ -158,6 +159,11 @@ public class DefaultMutableConfiguration implements MutableConfiguration { return config.getContext(); } + @Override + public ConfigurationSnapshot getSnapshot(Iterable keys) { + return config.getSnapshot(keys); + } + private Collection getPropertySources() { return this.config.getContext().getPropertySources(); } @@ -169,4 +175,4 @@ public class DefaultMutableConfiguration implements MutableConfiguration { '}'; } -} \ No newline at end of file +}