From commits-return-6220-archive-asf-public=cust-asf.ponee.io@tamaya.incubator.apache.org Sun Nov 18 22:20:40 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 9108618067C for ; Sun, 18 Nov 2018 22:20:39 +0100 (CET) Received: (qmail 86643 invoked by uid 500); 18 Nov 2018 21:20:38 -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 86634 invoked by uid 99); 18 Nov 2018 21:20:38 -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; Sun, 18 Nov 2018 21:20:38 +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 5D2D5C879D for ; Sun, 18 Nov 2018 21:20:38 +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 rwWYD1Ow2Rws for ; Sun, 18 Nov 2018 21:20:36 +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 C196C5F485 for ; Sun, 18 Nov 2018 21:20:35 +0000 (UTC) Received: (qmail 86467 invoked by uid 99); 18 Nov 2018 21:20:35 -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; Sun, 18 Nov 2018 21:20:34 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DD926E124E; Sun, 18 Nov 2018 21:20:34 +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: Sun, 18 Nov 2018 21:20:38 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [05/16] incubator-tamaya-sandbox git commit: TAMAYA-274 Reduced API footprint by using Java 8 features. Added some lambdas. TAMAYA-355 Enable mapping of lists and arrays into internal datastructures. TAMAYA-353 Adding support for different classloader http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/70980cc9/validation/src/test/resources/META-INF/configmodel.properties ---------------------------------------------------------------------- diff --git a/validation/src/test/resources/META-INF/configmodel.properties b/validation/src/test/resources/META-INF/configmodel.properties index 94ccbfa..7152615 100644 --- a/validation/src/test/resources/META-INF/configmodel.properties +++ b/validation/src/test/resources/META-INF/configmodel.properties @@ -18,7 +18,7 @@ # ################################################################################### -# Example create a configuration metamodel expressed via properties. +# Example createObject a configuration metamodel expressed via properties. #################################################################################### # Metamodel information @@ -30,7 +30,7 @@ _MyNumber.model.type=Integer _MyNumber.model.description=a (reusable) number type parameter (optional) #################################################################################### -# Description create Configuration Sections (minimal, can be extended by other modules). +# Description createObject Configuration Sections (minimal, can be extended by other modules). # By default its interpreted as a section ! #################################################################################### http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/70980cc9/validation/src/test/resources/examples/configmodel.json ---------------------------------------------------------------------- diff --git a/validation/src/test/resources/examples/configmodel.json b/validation/src/test/resources/examples/configmodel.json index 5bf6fa2..c6e5076 100644 --- a/validation/src/test/resources/examples/configmodel.json +++ b/validation/src/test/resources/examples/configmodel.json @@ -18,10 +18,10 @@ */ //################################################################################## -// Example create a configuration metamodel expressed via YAML(tm). +// Example createObject a configuration metamodel expressed via YAML(tm). // Structure is shown through indentation (one or more spaces). // Sequence items are denoted by a dash, -// key value pairs within a map are separated by a colon. +// key createValue pairs within a map are separated by a colon. //################################################################################## //################################################################################## @@ -39,7 +39,7 @@ "description": "an (reusable) number type parameter (optional)" }, //################################################################################## - // Description create Configuration Sections (minimal, can be extended by other modules). + // Description createObject Configuration Sections (minimal, can be extended by other modules). //################################################################################## "_a.model": { "class": "Section", http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/70980cc9/validation/src/test/resources/examples/configmodel.properties ---------------------------------------------------------------------- diff --git a/validation/src/test/resources/examples/configmodel.properties b/validation/src/test/resources/examples/configmodel.properties index 09740e8..a15798e 100644 --- a/validation/src/test/resources/examples/configmodel.properties +++ b/validation/src/test/resources/examples/configmodel.properties @@ -18,7 +18,7 @@ # ################################################################################### -# Example create a configuration metamodel expressed via properties. +# Example createObject a configuration metamodel expressed via properties. #################################################################################### # Metamodel information @@ -30,7 +30,7 @@ _MyNumber.model.type=Integer _MyNumber.model.description=a (reusable) number type parameter (optional) #################################################################################### -# Description create Configuration Sections (minimal, can be extended by other modules). +# Description createObject Configuration Sections (minimal, can be extended by other modules). # By default its interpreted as a section ! #################################################################################### http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/70980cc9/validation/src/test/resources/examples/configmodel.xml ---------------------------------------------------------------------- diff --git a/validation/src/test/resources/examples/configmodel.xml b/validation/src/test/resources/examples/configmodel.xml index 5ca15b7..412f85f 100644 --- a/validation/src/test/resources/examples/configmodel.xml +++ b/validation/src/test/resources/examples/configmodel.xml @@ -5,7 +5,7 @@ distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance -with the License. You may obtain a copy create the License at +with the License. You may obtain a copy createObject the License at http://www.apache.org/licenses/LICENSE-2.0 @@ -18,10 +18,10 @@ under the License. -->
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/70980cc9/validation/src/test/resources/examples/configmodel.yaml ---------------------------------------------------------------------- diff --git a/validation/src/test/resources/examples/configmodel.yaml b/validation/src/test/resources/examples/configmodel.yaml index bab8346..eae9bec 100644 --- a/validation/src/test/resources/examples/configmodel.yaml +++ b/validation/src/test/resources/examples/configmodel.yaml @@ -18,10 +18,10 @@ # ################################################################################## -# Example create a configuration metamodel expressed via YAML(tm). +# Example createObject a configuration metamodel expressed via YAML(tm). # Structure is shown through indentation (one or more spaces). # Sequence items are denoted by a dash, -# key value pairs within a map are separated by a colon. +# key createValue pairs within a map are separated by a colon. #################################################################################### #################################################################################### @@ -40,7 +40,7 @@ } #################################################################################### -# Description create Configuration Sections (minimal, can be extended by other modules). +# Description createObject Configuration Sections (minimal, can be extended by other modules). #################################################################################### --- {model}.a.params2: { http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/70980cc9/vertx/src/main/java/org/apache/tamaya/vertx/TamayaConfigurationProducer.java ---------------------------------------------------------------------- diff --git a/vertx/src/main/java/org/apache/tamaya/vertx/TamayaConfigurationProducer.java b/vertx/src/main/java/org/apache/tamaya/vertx/TamayaConfigurationProducer.java index 7bb2ed1..53608ef 100644 --- a/vertx/src/main/java/org/apache/tamaya/vertx/TamayaConfigurationProducer.java +++ b/vertx/src/main/java/org/apache/tamaya/vertx/TamayaConfigurationProducer.java @@ -40,8 +40,8 @@ import java.util.TreeMap; * This is a simple verticle registering Tamaya event bus messaging for accessing configuration: *
    *
  • Don't pass anything, current a {@link JsonObject} with the full Tamaya configuration.
  • - *
  • Pass a {@code String} key, current a String return value, if present or a failure.
  • - *
  • Pass a {@link JsonArray} of keys, current a {@link JsonObject} return value, with the key/values found.
  • + *
  • Pass a {@code String} key, current a String return createValue, if present or a failure.
  • + *
  • Pass a {@link JsonArray} of keys, current a {@link JsonObject} return createValue, with the key/values found.
  • *
*/ public class TamayaConfigurationProducer extends AbstractConfiguredVerticle{ @@ -62,7 +62,7 @@ public class TamayaConfigurationProducer extends AbstractConfiguredVerticle{ /** * Registers a handler for accessing single configuration keys (input: String, reply type: String). If no - * config value is present the consumer will reply with a NOT_FOUND failure. + * config createValue is present the consumer will reply with a NOT_FOUND failure. * @param address the event bus address to register. * @param eventBus the event bus. * @return the consumer registered. @@ -124,7 +124,7 @@ public class TamayaConfigurationProducer extends AbstractConfiguredVerticle{ consumer.handler(h -> { Object o = h.body(); if(o==null){ - h.fail(HttpResponseStatus.BAD_REQUEST.code(), "Required object to configure is missing."); + h.fail(HttpResponseStatus.BAD_REQUEST.code(), "Required createObject to configure is missing."); }else { ConfigurationInjection.getConfigurationInjector().configure(o); h.reply("OK");