Jenkins build is still unstable: Tamaya-Sandbox-Master » Apache Tamaya :: OSGi Integration :: ConfigAdmin #498

2017-03-24 Thread Apache Jenkins Server
See 




Jenkins build is still unstable: Tamaya-Sandbox-Master #497

2017-03-24 Thread Apache Jenkins Server
See 




[2/2] incubator-tamaya-sandbox git commit: TAMAYA-260: Implemented Microprofile.io Config API, added basic tests.

2017-03-24 Thread anatole
TAMAYA-260: Implemented Microprofile.io Config API, added basic tests.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/commit/2852c48e
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/tree/2852c48e
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/diff/2852c48e

Branch: refs/heads/master
Commit: 2852c48e11e932d7b42ed3a09f71a8c792990bb1
Parents: 7efb64e
Author: anatole 
Authored: Fri Mar 24 22:53:34 2017 +0100
Committer: anatole 
Committed: Fri Mar 24 22:53:34 2017 +0100

--
 .../microprofile/MicroprofileAdapter.java   | 182 +++
 .../tamaya/microprofile/MicroprofileConfig.java |  82 +
 .../microprofile/MicroprofileConfigBuilder.java |  84 +
 .../MicroprofileConfigProviderResolver.java |  73 
 .../microprofile/MicroprofileConfigSource.java  |  78 
 .../MicroprofileConfigSourceProvider.java   |  64 +++
 .../microprofile/MicroprofileConverter.java |  50 +
 .../microprofile/TamayaConfiguration.java   |  96 ++
 .../microprofile/TamayaPropertyConverter.java   |  48 +
 .../microprofile/TamayaPropertySource.java  |  76 
 .../TamayaPropertySourceProvider.java   |  56 ++
 .../org/eclipse/microprofile/config/Config.java | 126 +
 .../microprofile/config/ConfigProvider.java | 102 +++
 .../config/inject/ConfigProperty.java   | 112 
 .../config/inject/package-info.java |  40 
 .../microprofile/config/package-info.java   |  75 
 .../microprofile/config/spi/ConfigBuilder.java  |  83 +
 .../config/spi/ConfigProviderResolver.java  | 164 +
 .../microprofile/config/spi/ConfigSource.java   | 107 +++
 .../config/spi/ConfigSourceProvider.java|  58 ++
 .../microprofile/config/spi/Converter.java  |  77 
 .../microprofile/config/spi/package-info.java   |  30 +++
 ...croprofile.config.spi.ConfigProviderResolver |  20 ++
 .../MicroprofileConfigProviderTest.java |  63 +++
 .../microprofile/MicroprofileConfigTest.java|  89 +
 25 files changed, 2035 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/2852c48e/microprofile/src/main/java/org/apache/tamaya/microprofile/MicroprofileAdapter.java
--
diff --git 
a/microprofile/src/main/java/org/apache/tamaya/microprofile/MicroprofileAdapter.java
 
b/microprofile/src/main/java/org/apache/tamaya/microprofile/MicroprofileAdapter.java
new file mode 100644
index 000..29f563c
--- /dev/null
+++ 
b/microprofile/src/main/java/org/apache/tamaya/microprofile/MicroprofileAdapter.java
@@ -0,0 +1,182 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  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 of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.tamaya.microprofile;
+
+
+import org.apache.tamaya.*;
+import org.apache.tamaya.spi.ConfigurationContextBuilder;
+import org.apache.tamaya.spi.PropertyConverter;
+import org.apache.tamaya.spi.PropertySource;
+import org.apache.tamaya.spi.PropertyValue;
+import org.eclipse.microprofile.config.Config;
+import org.eclipse.microprofile.config.spi.ConfigBuilder;
+import org.eclipse.microprofile.config.spi.ConfigSource;
+import org.eclipse.microprofile.config.spi.Converter;
+
+import java.util.*;
+
+/**
+ * Utility class for adapting microprofile artifacts into Tamaya artifacts and 
vice versa.
+ */
+public final class MicroprofileAdapter{
+
+/**
+ * Singleton constructor.
+ */
+private MicroprofileAdapter(){}
+
+/**
+ * Converts a Tamaya {@link Configuration} into a Microprofile.io 
{@Config}.
+ * @param config the Tamaya {@link Configuration} instance, not null.
+ * @return the corresponding Microprofile.io {@Config} instance, never 
null.
+ */
+public static Config toConfig(Configuration config){
+if(config instanceof 

Jenkins build is still unstable: Tamaya-Sandbox-Master #495

2017-03-24 Thread Apache Jenkins Server
See 



Jenkins build is still unstable: Tamaya-Sandbox-Master » Apache Tamaya :: OSGi Integration :: ConfigAdmin #495

2017-03-24 Thread Apache Jenkins Server
See