[openwebbeans-meecrowave] branch master updated: MEECROWAVE-219 patch from Killian Matt to close WatchService in reload on change controller
This is an automated email from the ASF dual-hosted git repository. rmannibucau pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave.git The following commit(s) were added to refs/heads/master by this push: new 02cc9ad MEECROWAVE-219 patch from Killian Matt to close WatchService in reload on change controller 02cc9ad is described below commit 02cc9ad48cf644739de053a09ea9823a230be1d3 Author: Romain Manni-Bucau AuthorDate: Tue Oct 29 06:01:12 2019 +0100 MEECROWAVE-219 patch from Killian Matt to close WatchService in reload on change controller --- .../org/apache/meecrowave/watching/ReloadOnChangeController.java | 8 1 file changed, 8 insertions(+) diff --git a/meecrowave-core/src/main/java/org/apache/meecrowave/watching/ReloadOnChangeController.java b/meecrowave-core/src/main/java/org/apache/meecrowave/watching/ReloadOnChangeController.java index e76816a..0a34601 100644 --- a/meecrowave-core/src/main/java/org/apache/meecrowave/watching/ReloadOnChangeController.java +++ b/meecrowave-core/src/main/java/org/apache/meecrowave/watching/ReloadOnChangeController.java @@ -103,6 +103,14 @@ public class ReloadOnChangeController implements AutoCloseable, Runnable { Thread.interrupted(); } } +if (watchService != null) { +try { +watchService.close(); +} catch (final IOException ex) { +new LogFacade(ReloadOnChangeController.class.getName()) +.warn(ex.getMessage(), ex); +} +} } public boolean shouldRun() {
[johnzon] branch master updated: JOHNZON-291 ensure we enforce maven 3.3 and java 1.8 to build
This is an automated email from the ASF dual-hosted git repository. rmannibucau pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/johnzon.git The following commit(s) were added to refs/heads/master by this push: new 99dc912 JOHNZON-291 ensure we enforce maven 3.3 and java 1.8 to build 99dc912 is described below commit 99dc9121da85762b724c40f86e74c38511002041 Author: Romain Manni-Bucau AuthorDate: Sun Oct 27 18:59:03 2019 +0100 JOHNZON-291 ensure we enforce maven 3.3 and java 1.8 to build --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 6852af1..e22ff54 100644 --- a/pom.xml +++ b/pom.xml @@ -387,7 +387,7 @@ org.apache.maven.plugins maven-enforcer-plugin -1.4 +3.0.0-M2 enforce-versions @@ -397,10 +397,10 @@ - [3.1,) + [3.3,) - [${java-compile.version},) + [${java-compile.version},1.9)
[johnzon] branch master updated: no functional change, just extracting the JohnzonJsonb instantiation (+cdi tracking) in a dedicated method to be able to easily drop it with graalvm like tools (or asm
This is an automated email from the ASF dual-hosted git repository. rmannibucau pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/johnzon.git The following commit(s) were added to refs/heads/master by this push: new 920af22 no functional change, just extracting the JohnzonJsonb instantiation (+cdi tracking) in a dedicated method to be able to easily drop it with graalvm like tools (or asm rewriting code) 920af22 is described below commit 920af228fe9ea2b76a8f81197299286239b5e5e3 Author: Romain Manni-Bucau AuthorDate: Fri Oct 25 14:01:39 2019 +0200 no functional change, just extracting the JohnzonJsonb instantiation (+cdi tracking) in a dedicated method to be able to easily drop it with graalvm like tools (or asm rewriting code) --- .../src/main/java/org/apache/johnzon/jsonb/JohnzonBuilder.java | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/JohnzonBuilder.java b/johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/JohnzonBuilder.java index 427e493..26f380b 100644 --- a/johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/JohnzonBuilder.java +++ b/johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/JohnzonBuilder.java @@ -142,7 +142,7 @@ public class JohnzonBuilder implements JsonbBuilder { config = new JsonbConfig(); } -final Boolean skipCdi = shouldSkipCdi(); +final boolean skipCdi = shouldSkipCdi(); // todo: global spec toggle to disable all these ones at once? builder.setUseBigDecimalForObjectNumbers( @@ -357,13 +357,15 @@ public class JohnzonBuilder implements JsonbBuilder { }); }); -final boolean useCdi = cdiIntegration != null && cdiIntegration.isCanWrite() && !skipCdi; if (Closeable.class.isInstance(accessMode)) { builder.addCloseable(Closeable.class.cast(accessMode)); } -final Mapper mapper = builder.build(); +return doCreateJsonb(skipCdi, ijson, builder.build()); +} -if (useCdi) { +// note: this method must stay as small as possible to enable graalvm to replace it by "false" when needed +private Jsonb doCreateJsonb(final boolean skipCdi, final boolean ijson, final Mapper mapper) { +if (!skipCdi && cdiIntegration != null && cdiIntegration.isCanWrite()) { final JohnzonJsonb jsonb = new JohnzonJsonb(mapper, ijson, i -> { if (cdiIntegration.isCanWrite()) { cdiIntegration.untrack(i);
[johnzon] branch master updated: JOHNZON-290 configuration of jaxrs provider for polymorphic config
This is an automated email from the ASF dual-hosted git repository. rmannibucau pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/johnzon.git The following commit(s) were added to refs/heads/master by this push: new daba4ef JOHNZON-290 configuration of jaxrs provider for polymorphic config daba4ef is described below commit daba4efc98096783f8e857a01fed473e32a11932 Author: Romain Manni-Bucau AuthorDate: Fri Oct 18 10:25:11 2019 +0200 JOHNZON-290 configuration of jaxrs provider for polymorphic config --- .../johnzon/jaxrs/ConfigurableJohnzonProvider.java | 55 .../jaxrs/jsonb/jaxrs/JsonbJaxrsProvider.java | 73 ++ 2 files changed, 128 insertions(+) diff --git a/johnzon-jaxrs/src/main/java/org/apache/johnzon/jaxrs/ConfigurableJohnzonProvider.java b/johnzon-jaxrs/src/main/java/org/apache/johnzon/jaxrs/ConfigurableJohnzonProvider.java index 9b853db..edcf545 100644 --- a/johnzon-jaxrs/src/main/java/org/apache/johnzon/jaxrs/ConfigurableJohnzonProvider.java +++ b/johnzon-jaxrs/src/main/java/org/apache/johnzon/jaxrs/ConfigurableJohnzonProvider.java @@ -20,6 +20,7 @@ package org.apache.johnzon.jaxrs; import static java.util.Arrays.asList; import static java.util.stream.Collectors.toMap; +import static java.util.stream.Collectors.toSet; import java.io.IOException; import java.io.InputStream; @@ -30,8 +31,10 @@ import java.lang.reflect.Type; import java.util.Comparator; import java.util.List; import java.util.Map; +import java.util.Set; import java.util.concurrent.atomic.AtomicReference; import java.util.function.Function; +import java.util.stream.Stream; import javax.json.JsonReaderFactory; import javax.json.stream.JsonGeneratorFactory; @@ -134,6 +137,46 @@ public class ConfigurableJohnzonProvider implements MessageBodyWriter, Mes builder.setFailOnUnknownProperties(active); } +public void setPolymorphicSerializationPredicate(final String classes) { +final Set> set = asSet(classes); +builder.setPolymorphicSerializationPredicate(set::contains); +} + +public void setPolymorphicDeserializationPredicate(final String classes) { +final Set> set = asSet(classes); +builder.setPolymorphicDeserializationPredicate(set::contains); +} + +public void setPolymorphicDiscriminatorMapper(final Map discriminatorMapper) { +final ClassLoader loader = Thread.currentThread().getContextClassLoader(); +final Map, String> map = discriminatorMapper.entrySet().stream() +.collect(toMap(e -> { +try { +return loader.loadClass(e.getKey().trim()); +} catch (final ClassNotFoundException ex) { +throw new IllegalArgumentException(ex); +} +}, Map.Entry::getValue)); +builder.setPolymorphicDiscriminatorMapper(map::get); +} + +public void setPolymorphicTypeLoader(final Map aliasTypeMapping) { +final ClassLoader loader = Thread.currentThread().getContextClassLoader(); +final Map> map = aliasTypeMapping.entrySet().stream() +.collect(toMap(Map.Entry::getKey, e -> { +try { +return loader.loadClass(e.getValue().trim()); +} catch (final ClassNotFoundException ex) { +throw new IllegalArgumentException(ex); +} +})); +builder.setPolymorphicTypeLoader(map::get); +} + +public void setPolymorphicDiscriminator(final String value) { +builder.setPolymorphicDiscriminator(value); +} + public void setSupportConstructors(final boolean supportConstructors) { builder.setSupportConstructors(supportConstructors); } @@ -269,4 +312,16 @@ public class ConfigurableJohnzonProvider implements MessageBodyWriter, Mes public void setAutoAdjustStringBuffers(final boolean autoAdjustStringBuffers) { builder.setAutoAdjustStringBuffers(autoAdjustStringBuffers); } + +private Set> asSet(final String classes) { +final ClassLoader loader = Thread.currentThread().getContextClassLoader(); +return Stream.of(classes.split(" *, *")) +.map(n -> { +try { +return loader.loadClass(n.trim()); +} catch (final ClassNotFoundException ex) { +throw new IllegalArgumentException(ex); +} +}).collect(toSet()); +} } diff --git a/johnzon-jsonb/src/main/java/org/apache/johnzon/jaxrs/jsonb/jaxrs/JsonbJaxrsProvider.java b/johnzon-jsonb/src/main/java/org/apache/johnzon/jaxrs/jsonb/jaxrs/JsonbJaxrsProvider.java index 20d547a..43fbe70 100644 --- a/johnzon-jsonb/src/main/java/org/apache/johnzon/jaxrs/jsonb/jaxrs/JsonbJaxrsProvider.java +++ b/john
[johnzon] branch master updated: JOHNZON-290 PolumorphicConfig support
This is an automated email from the ASF dual-hosted git repository. rmannibucau pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/johnzon.git The following commit(s) were added to refs/heads/master by this push: new 56cd895 JOHNZON-290 PolumorphicConfig support 56cd895 is described below commit 56cd8957a2a9d36483eacc97911ff990403a5220 Author: Romain Manni-Bucau AuthorDate: Fri Oct 18 10:01:08 2019 +0200 JOHNZON-290 PolumorphicConfig support --- .../org/apache/johnzon/jsonb/JohnzonBuilder.java | 10 ++ .../jsonb/api/experimental/PolymorphicConfig.java | 80 .../johnzon/jsonb/PolymorphicConfigTest.java | 140 + .../org/apache/johnzon/mapper/MapperBuilder.java | 38 +- .../org/apache/johnzon/mapper/MapperConfig.java| 46 ++- .../johnzon/mapper/MappingGeneratorImpl.java | 7 +- .../apache/johnzon/mapper/MappingParserImpl.java | 13 +- .../apache/johnzon/mapper/MapperConfigTest.java| 10 +- .../test/java/org/superbiz/ExtendMappingTest.java | 14 +-- 9 files changed, 337 insertions(+), 21 deletions(-) diff --git a/johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/JohnzonBuilder.java b/johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/JohnzonBuilder.java index d33f229..427e493 100644 --- a/johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/JohnzonBuilder.java +++ b/johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/JohnzonBuilder.java @@ -88,6 +88,7 @@ import org.apache.johnzon.core.AbstractJsonFactory; import org.apache.johnzon.core.JsonGeneratorFactoryImpl; import org.apache.johnzon.core.JsonParserFactoryImpl; import org.apache.johnzon.core.Types; +import org.apache.johnzon.jsonb.api.experimental.PolymorphicConfig; import org.apache.johnzon.jsonb.cdi.CDIs; import org.apache.johnzon.jsonb.converter.JohnzonJsonbAdapter; import org.apache.johnzon.jsonb.factory.SimpleJohnzonAdapterFactory; @@ -167,6 +168,15 @@ public class JohnzonBuilder implements JsonbBuilder { builder.setPretty(true); } +config.getProperty(PolymorphicConfig.class.getName()) +.map(PolymorphicConfig.class::cast) +.ifPresent(pc -> { +builder.setPolymorphicDiscriminator(pc.getDiscriminator()); + builder.setPolymorphicDeserializationPredicate(pc.getDeserializationPredicate()); + builder.setPolymorphicSerializationPredicate(pc.getSerializationPredicate()); + builder.setPolymorphicDiscriminatorMapper(pc.getDiscriminatorMapper()); +builder.setPolymorphicTypeLoader(pc.getTypeLoader()); +}); config.getProperty(JsonbConfig.ENCODING).ifPresent(encoding -> builder.setEncoding(String.valueOf(encoding))); final boolean isNillable = config.getProperty(JsonbConfig.NULL_VALUES) .map(it -> String.class.isInstance(it) ? Boolean.parseBoolean(it.toString()) : Boolean.class.cast(it)) diff --git a/johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/api/experimental/PolymorphicConfig.java b/johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/api/experimental/PolymorphicConfig.java new file mode 100644 index 000..e127a43 --- /dev/null +++ b/johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/api/experimental/PolymorphicConfig.java @@ -0,0 +1,80 @@ +/* + * 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.johnzon.jsonb.api.experimental; + +import java.util.function.Function; +import java.util.function.Predicate; + +public class PolymorphicConfig { +private Function> typeLoader = a -> { +throw new IllegalArgumentException("Unknown alias: '" + a + "'"); +}; +private Function, String> discriminatorMapper = type -> { +throw new IllegalArgumentException("Unknown class '" + type.getName() + "'"); +}; +private Predicate> serializationPredicate = c -> false; +private Predicate> deserializationPredicate = c -> false; +private String discriminator = "@type"; + +public PolymorphicConfig withDeseri
[openwebbeans-meecrowave] branch master updated: Update index.adoc
This is an automated email from the ASF dual-hosted git repository. rmannibucau pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave.git The following commit(s) were added to refs/heads/master by this push: new 779f3d1 Update index.adoc new f965a45 Merge pull request #14 from dve/patch-1 779f3d1 is described below commit 779f3d1cf374d4c365c0b3771f0662768fc8b295 Author: Daniel Nordhoff-Vergien AuthorDate: Mon Aug 12 14:27:31 2019 +0200 Update index.adoc Add copy and paste friendly test scope to dependencies --- meecrowave-doc/src/main/jbake/content/testing/index.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meecrowave-doc/src/main/jbake/content/testing/index.adoc b/meecrowave-doc/src/main/jbake/content/testing/index.adoc index 6dbf730..b112ae1 100644 --- a/meecrowave-doc/src/main/jbake/content/testing/index.adoc +++ b/meecrowave-doc/src/main/jbake/content/testing/index.adoc @@ -17,6 +17,7 @@ Coordinates: org.apache.meecrowave meecrowave-junit ${meecrowave.version} + test @@ -118,6 +119,7 @@ Container dependency: org.apache.meecrowave meecrowave-arquillian ${meecrowave.version} + test
[openwebbeans-meecrowave] branch master updated: MEECROWAVE-218 tomcat 9.0.27
This is an automated email from the ASF dual-hosted git repository. rmannibucau pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave.git The following commit(s) were added to refs/heads/master by this push: new 72a6542 MEECROWAVE-218 tomcat 9.0.27 72a6542 is described below commit 72a6542a943d159c2a3c0d1ecbfece22f19f8046 Author: Romain Manni-Bucau AuthorDate: Fri Oct 11 12:08:19 2019 +0200 MEECROWAVE-218 tomcat 9.0.27 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5e3e183..dfebba1 100644 --- a/pom.xml +++ b/pom.xml @@ -51,7 +51,7 @@ ${project.groupId}.${project.artifactId} 4.13-beta-3 -9.0.26 +9.0.27 2.0.12 3.3.3 1.2.1
[johnzon] branch master updated: JOHNZON-287 JOHNZON-288 JOHNZON-289 add supportPrivateAccess for jsonbcreator in jsonbaccessmode + cleanup CDI property support
This is an automated email from the ASF dual-hosted git repository. rmannibucau pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/johnzon.git The following commit(s) were added to refs/heads/master by this push: new ecdc643 JOHNZON-287 JOHNZON-288 JOHNZON-289 add supportPrivateAccess for jsonbcreator in jsonbaccessmode + cleanup CDI property support ecdc643 is described below commit ecdc643014446ef35be2782224f450360d23ed74 Author: Romain Manni-Bucau AuthorDate: Wed Oct 9 14:45:57 2019 +0200 JOHNZON-287 JOHNZON-288 JOHNZON-289 add supportPrivateAccess for jsonbcreator in jsonbaccessmode + cleanup CDI property support --- .../org/apache/johnzon/jsonb/JohnzonBuilder.java | 28 - .../org/apache/johnzon/jsonb/JsonbAccessMode.java | 36 +- .../johnzon/jsonb/ConstructorVisibilityTest.java | 24 +++ src/site/markdown/index.md | 9 ++ 4 files changed, 81 insertions(+), 16 deletions(-) diff --git a/johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/JohnzonBuilder.java b/johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/JohnzonBuilder.java index f5bb7ea..d33f229 100644 --- a/johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/JohnzonBuilder.java +++ b/johnzon-jsonb/src/main/java/org/apache/johnzon/jsonb/JohnzonBuilder.java @@ -141,6 +141,8 @@ public class JohnzonBuilder implements JsonbBuilder { config = new JsonbConfig(); } +final Boolean skipCdi = shouldSkipCdi(); + // todo: global spec toggle to disable all these ones at once? builder.setUseBigDecimalForObjectNumbers( config.getProperty("johnzon.use-big-decimal-for-object").map(this::toBool).orElse(true)); @@ -222,7 +224,7 @@ public class JohnzonBuilder implements JsonbBuilder { } } throw new IllegalArgumentException("Unsupported factory: " + val); -}).orElseGet(this::findFactory); +}).orElseGet(() -> findFactory(skipCdi)); final AccessMode accessMode = config.getProperty("johnzon.accessMode") .map(this::toAccessMode) @@ -235,9 +237,12 @@ public class JohnzonBuilder implements JsonbBuilder { .map(this::toAccessMode) .orElseGet(() -> new FieldAndMethodAccessMode(true, true, false, true)), config.getProperty("johnzon.failOnMissingCreatorValues") - .map(it -> String.class.isInstance(it) ? Boolean.parseBoolean(it.toString()) : Boolean.class.cast(it)) + .map(this::toBool) .orElse(true) /*spec 1.0 requirement*/, -isNillable)); +isNillable, +config.getProperty("johnzon.supportsPrivateAccess") +.map(this::toBool) +.orElse(false))); builder.setAccessMode(accessMode); // user adapters @@ -285,7 +290,9 @@ public class JohnzonBuilder implements JsonbBuilder { } }); -getBeanManager(); // force detection +if (!skipCdi) { +getBeanManager(); // force detection +} final Types types = new Types(); builder.setReadAttributeBeforeWrite( @@ -340,7 +347,7 @@ public class JohnzonBuilder implements JsonbBuilder { }); }); -final boolean useCdi = cdiIntegration != null && cdiIntegration.isCanWrite() && config.getProperty("johnzon.cdi.activated").map(Boolean.class::cast).orElse(Boolean.TRUE); +final boolean useCdi = cdiIntegration != null && cdiIntegration.isCanWrite() && !skipCdi; if (Closeable.class.isInstance(accessMode)) { builder.addCloseable(Closeable.class.cast(accessMode)); } @@ -408,9 +415,8 @@ public class JohnzonBuilder implements JsonbBuilder { return beanManager; } -private JohnzonAdapterFactory findFactory() { -if (getBeanManager() == NO_BM || config.getProperty("johnzon.skip-cdi") -.map(s -> "true".equalsIgnoreCase(String.valueOf(s))).orElse(false)) { +private JohnzonAdapterFactory findFactory(final boolean skipCdi) { +if (skipCdi || getBeanManager() == NO_BM) { return new SimpleJohnzonAdapterFactory(); } try { // don't trigger CDI is not there @@ -420,6 +426,12 @@ public class JohnzonBuilder implements JsonbBuilder { } } +private Boolean shouldSkipCdi() { +return config.getProperty("johnzon.skip-cdi") +.map(s -> "true".equalsIgnoreCase(String.valueOf(s))) +.orElseGet(() -> !config.getPr
[johnzon] branch master updated (c3aac1f -> 2eac2d5)
This is an automated email from the ASF dual-hosted git repository. rmannibucau pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/johnzon.git. from c3aac1f updating download links add 2eac2d5 JOHNZON-286 Making DefaultPropertyVisibilityStrategy non-public No new revisions were added by this update. Summary of changes: .../org/apache/johnzon/jsonb/DefaultPropertyVisibilityStrategy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
[openwebbeans] branch master updated: OWB-1299 ensure jar with an extension can be skipped in terms of scanning, org.apache.webbeans.scanExtensionJars = true new property, default stays consistent wit
This is an automated email from the ASF dual-hosted git repository. rmannibucau pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/openwebbeans.git The following commit(s) were added to refs/heads/master by this push: new 5e72019 OWB-1299 ensure jar with an extension can be skipped in terms of scanning, org.apache.webbeans.scanExtensionJars = true new property, default stays consistent with our previous behavior 5e72019 is described below commit 5e72019d22bc49860ef33e9bf134d712b44221c1 Author: Romain Manni-Bucau AuthorDate: Sat Oct 5 17:53:02 2019 +0200 OWB-1299 ensure jar with an extension can be skipped in terms of scanning, org.apache.webbeans.scanExtensionJars = true new property, default stays consistent with our previous behavior --- .../webbeans/config/OpenWebBeansConfiguration.java | 23 +++ .../corespi/scanner/AbstractMetaDataDiscovery.java | 22 ++- .../webbeans/portable/events/ExtensionLoader.java | 74 - .../META-INF/openwebbeans/openwebbeans.properties | 7 + .../scanner/AbstractMetaDataDiscoveryTest.java | 174 + .../org/apache/webbeans/test/AbstractUnitTest.java | 14 +- 6 files changed, 306 insertions(+), 8 deletions(-) diff --git a/webbeans-impl/src/main/java/org/apache/webbeans/config/OpenWebBeansConfiguration.java b/webbeans-impl/src/main/java/org/apache/webbeans/config/OpenWebBeansConfiguration.java index 968afd0..187f665 100644 --- a/webbeans-impl/src/main/java/org/apache/webbeans/config/OpenWebBeansConfiguration.java +++ b/webbeans-impl/src/main/java/org/apache/webbeans/config/OpenWebBeansConfiguration.java @@ -181,6 +181,13 @@ public class OpenWebBeansConfiguration public static final String IGNORED_EXTENSIONS = "org.apache.webbeans.ignoredExtensions"; /** + * A boolean to enable CDI 1.1 behavior to not scan extension jar. + * + * IMPORTANT: this can break CDI 1.0 extensions. + */ +public static final String SCAN_EXTENSION_JARS = "org.apache.webbeans.scanExtensionJars"; + +/** * By default we do _not_ force session creation in our WebBeansConfigurationListener. We only create the * Session if we really need the SessionContext. E.g. when we create a Contextual Instance in it. * Sometimes this creates a problem as the HttpSession can only be created BEFORE anything got written back @@ -226,6 +233,11 @@ public class OpenWebBeansConfiguration private Set ignoredExtensions; /** + * @see #SCAN_EXTENSION_JARS + */ +private Boolean scanExtensionJars; + +/** * All configured lists per key. * * For a single key the following configuration sources will get parsed: @@ -450,6 +462,17 @@ public class OpenWebBeansConfiguration return ignoredExtensions; } +public synchronized boolean getScanExtensionJars() +{ +if (scanExtensionJars == null) +{ +final String property = getProperty(SCAN_EXTENSION_JARS); +// default must stay true for backward compatibility +scanExtensionJars = property == null || Boolean.parseBoolean(property.trim()); +} +return scanExtensionJars; +} + private Set getPropertyList(String configKey) { String configValue = getProperty(configKey); diff --git a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java index 4fded1f..44febe9 100644 --- a/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java +++ b/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java @@ -19,6 +19,8 @@ package org.apache.webbeans.corespi.scanner; +import static java.util.stream.Collectors.toMap; + import org.apache.webbeans.config.OWBLogConst; import org.apache.webbeans.config.OpenWebBeansConfiguration; import org.apache.webbeans.config.WebBeansContext; @@ -105,13 +107,27 @@ public abstract class AbstractMetaDataDiscovery implements BdaScannerService return finder; } +final WebBeansContext webBeansContext = webBeansContext(); if (beanArchiveService == null) { -beanArchiveService = webBeansContext().getBeanArchiveService(); +beanArchiveService = webBeansContext.getBeanArchiveService(); } -Filter userFilter = webBeansContext().getService(Filter.class); -archive = new CdiArchive(beanArchiveService, WebBeansUtil.getCurrentClassLoader(), getBeanDeploymentUrls(), userFilter, getAdditionalArchive()); +final Filter userFilter = webBeansContext.getService(Filter.class); +Map beanDeploymentUrls = getBeanDeploymentUrls(); +if (!webBeansContext.getOpenWebBeansConfiguration().
[openwebbeans-meecrowave] branch master updated: updating downloads
This is an automated email from the ASF dual-hosted git repository. rmannibucau pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave.git The following commit(s) were added to refs/heads/master by this push: new 2a48874 updating downloads 2a48874 is described below commit 2a48874a64f1a1a07ffc9c73b66e9c4203ed713a Author: Romain Manni-Bucau AuthorDate: Thu Oct 3 16:55:37 2019 +0200 updating downloads --- meecrowave-doc/src/main/jbake/content/download.adoc | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meecrowave-doc/src/main/jbake/content/download.adoc b/meecrowave-doc/src/main/jbake/content/download.adoc index ae1f342..5ce8926 100755 --- a/meecrowave-doc/src/main/jbake/content/download.adoc +++ b/meecrowave-doc/src/main/jbake/content/download.adoc @@ -12,7 +12,10 @@ License under Apache License v2 (ALv2). [.table.table-bordered,options="header"] |=== |Name|Version|Date|Size|Type|Links -|Meecrowave Source Release|1.2.8|2019-05-26 08:49:48|1 MB 512 kB|zip| http://www.apache.org/dyn/closer.lua/openwebbeans/meecrowave/1.2.8/meecrowave-1.2.8-source-release.zip[icon:download[] zip] https://dist.apache.org/repos/dist/release/openwebbeans/meecrowave/1.2.8/meecrowave-1.2.8-source-release.zip.sha512[icon:download[] sha512] https://dist.apache.org/repos/dist/release/openwebbeans/meecrowave/1.2.8/meecrowave-1.2.8-source-release.zip.asc[icon:download[] asc] +|Meecrowave Source Release|1.2.9|2019-09-30 08:19:59|1 MB 552 kB|zip| http://www.apache.org/dyn/closer.lua/openwebbeans/meecrowave/1.2.9/meecrowave-1.2.9-source-release.zip[icon:download[] zip] https://dist.apache.org/repos/dist/release/openwebbeans/meecrowave/1.2.9/meecrowave-1.2.9-source-release.zip.sha512[icon:download[] sha512] https://dist.apache.org/repos/dist/release/openwebbeans/meecrowave/1.2.9/meecrowave-1.2.9-source-release.zip.asc[icon:download[] asc] +|Meecrowave Core runner|1.2.9|2019-09-30 08:21:17|9 MB 972 kB|jar| https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.9/meecrowave-core-1.2.9-runner.jar[icon:download[] jar] https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.9/meecrowave-core-1.2.9-runner.jar.sha1[icon:download[] sha1] https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.9/meecrowave-core-1.2.9-runner.jar.asc[icon:download[] asc] +|Meecrowave Core|1.2.9|2019-09-30 08:21:05|220 kB|jar| https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.9/meecrowave-core-1.2.9.jar[icon:download[] jar] https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.9/meecrowave-core-1.2.9.jar.sha1[icon:download[] sha1] https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.9/meecrowave-core-1.2.9.jar.asc[icon:download[] asc] +|Meecrowave Source Release|1.2.8|2019-05-26 08:49:48|1 MB 512 kB|zip| https://archive.apache.org/dist/openwebbeans/meecrowave/1.2.8/meecrowave-1.2.8-source-release.zip[icon:download[] zip] https://archive.apache.org/dist/openwebbeans/meecrowave/1.2.8/meecrowave-1.2.8-source-release.zip.sha512[icon:download[] sha512] https://archive.apache.org/dist/openwebbeans/meecrowave/1.2.8/meecrowave-1.2.8-source-release.zip.asc[icon:download[] asc] |Meecrowave Core runner|1.2.8|2019-05-26 08:51:12|9 MB 796 kB|jar| https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.8/meecrowave-core-1.2.8-runner.jar[icon:download[] jar] https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.8/meecrowave-core-1.2.8-runner.jar.sha1[icon:download[] sha1] https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.8/meecrowave-core-1.2.8-runner.jar.asc[icon:download[] asc] |Meecrowave Core|1.2.8|2019-05-26 08:51:00|214 kB|jar| https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.8/meecrowave-core-1.2.8.jar[icon:download[] jar] https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.8/meecrowave-core-1.2.8.jar.sha1[icon:download[] sha1] https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.8/meecrowave-core-1.2.8.jar.asc[icon:download[] asc] |Meecrowave Source Release|1.2.7|2019-02-25 08:33:35|1 MB 507 kB|zip| https://archive.apache.org/dist/openwebbeans/meecrowave/1.2.7/meecrowave-1.2.7-source-release.zip[icon:download[] zip] https://archive.apache.org/dist/openwebbeans/meecrowave/1.2.7/meecrowave-1.2.7-source-release.zip.sha512[icon:download[] sha512] https://archive.apache.org/dist/openwebbeans/meecrowave/1.2.7/meecrowave-1.2.7-source-release.zip.asc[icon:download[] asc]
svn commit: r1050995 [4/9] - in /websites/production/openwebbeans/content/meecrowave: ./ assets/css/ assets/plugins/ assets/plugins/elegant_font/css/ assets/plugins/font-awesome/css/ meecrowave-core/
Modified: websites/production/openwebbeans/content/meecrowave/download.html == --- websites/production/openwebbeans/content/meecrowave/download.html (original) +++ websites/production/openwebbeans/content/meecrowave/download.html Thu Oct 3 13:56:35 2019 @@ -18,7 +18,7 @@ - + @@ -66,283 +66,391 @@ - - - - License under Apache License v2 (ALv2). - - - - - - - - - - - - - Name - Version - Date - Size - Type - Links - - - - - Meecrowave Source Release - 1.2.4 - 2018-09-21 09:14:38 - 1 MB 466 kB - zip - https://www.apache.org/dyn/closer.lua/openwebbeans/meecrowave/1.2.4/meecrowave-1.2.4-source-release.zip;> zip https://dist.apache.org/repos/dist/release/openwebbeans/meecrowave/1.2.4/meecrowave-1.2.4-source-release.zip.sha512;>sha512 https://dist.apache.org/repos/dist/release/openwebbeans/meecrowave/1.2.4/meecrowave-1.2.4-source-release.zip.asc;>asc - - - Meecrowave Core runner - 1.2.4 - 2018-09-21 09:16:03 - 9 MB 534 kB - jar - https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.4/meecrowave-core-1.2.4-runner.jar;> jar https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.4/meecrowave-core-1.2.4-runner.jar.sha1;>sha1 https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.4/meecrowave-core-1.2.4-runner.jar.asc;>asc - - - Meecrowave Core - 1.2.4 - 2018-09-21 09:15:51 - 202 kB - jar - https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.4/meecrowave-core-1.2.4.jar;> jar https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.4/meecrowave-core-1.2.4.jar.sha1;>sha1 https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.4/meecrowave-core-1.2.4.jar.asc;>asc - - - Meecrowave Source Release - 1.2.3 - 2018-07-19 09:53:16 - 1 MB 448 kB - zip - https://archive.apache.org/dist/openwebbeans/meecrowave/1.2.3/meecrowave-1.2.3-source-release.zip;> zip https://archive.apache.org/dist/openwebbeans/meecrowave/1.2.3/meecrowave-1.2.3-source-release.zip.sha512;>sha512 https://archive.apache.org/dist/openwebbeans/meecrowave/1.2.3/meecrowave-1.2.3-source-release.zip.asc;>asc - - - Meecrowave Core runner - 1.2.3 - 2018-07-19 09:54:34 - 10 MB 159 kB - jar - https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.3/meecrowave-core-1.2.3-runner.jar;> jar https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.3/meecrowave-core-1.2.3-runner.jar.sha1;>sha1 https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.3/meecrowave-core-1.2.3-runner.jar.asc;>asc - - - Meecrowave Core - 1.2.3 - 2018-07-19 09:54:20 - 199 kB - jar - https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.3/meecrowave-core-1.2.3.jar;> jar https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.3/meecrowave-core-1.2.3.jar.sha1;>sha1 https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.3/meecrowave-core-1.2.3.jar.asc;>asc - - - Meecrowave Source Release - 1.2.2 - 2018-07-14 07:14:12 - 1 MB 448 kB - zip - https://archive.apache.org/dist/openwebbeans/meecrowave/1.2.2/meecrowave-1.2.2-source-release.zip;> zip https://archive.apache.org/dist/openwebbeans/meecrowave/1.2.2/meecrowave-1.2.2-source-release.zip.sha1;>sha1 https://archive.apache.org/dist/openwebbeans/meecrowave/1.2.2/meecrowave-1.2.2-source-release.zip.asc;>asc - - - Meecrowave Core runner - 1.2.2 - 2018-07-14 07:15:41 - 10 MB 177 kB - jar - https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.2/meecrowave-core-1.2.2-runner.jar;> jar https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.2/meecrowave-core-1.2.2-runner.jar.sha1;>sha1 https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.2/meecrowave-core-1.2.2-runner.jar.asc;>asc - - - Meecrowave Core - 1.2.2 - 2018-07-14 07:15:27 - 199 kB - jar - https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.2/meecrowave-core-1.2.2.jar;> jar https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.2/meecrowave-core-1.2.2.jar.sha1;>sha1 https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.2/meecrowave-core-1.2.2.jar.asc;>asc - - - Meecrowave Source Release - 1.2.1 - 2018-02-26 21:02:45 - 1 MB 425 kB -
svn commit: r1050995 [2/9] - in /websites/production/openwebbeans/content/meecrowave: ./ assets/css/ assets/plugins/ assets/plugins/elegant_font/css/ assets/plugins/font-awesome/css/ meecrowave-core/
Modified: websites/production/openwebbeans/content/meecrowave/assets/plugins/jquery-1.12.3.min.js == --- websites/production/openwebbeans/content/meecrowave/assets/plugins/jquery-1.12.3.min.js (original) +++ websites/production/openwebbeans/content/meecrowave/assets/plugins/jquery-1.12.3.min.js Thu Oct 3 13:56:35 2019 @@ -2,4 +2,4 @@ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="1.12.3",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(thi s,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&(a)?a:[]):f=a&(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!= a&==a.window},isNumeric:function(a){var b=a&();return!n.isArray(a)&(b)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(!l.ownFirst)for(b in a)return k.call(a,b);for(b in a);return void 0===b||k.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(b){b&(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){retur n null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(h)return h.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&(e);else for(g in a)e=b(a[g],g,c),null!=e&(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=e.call(arguments,2),d=function(){return a.apply(b||this,c.concat(e.call(arguments)))},d.guid=a.guid=a.guid||n.guid++,d):void 0},now:function(){return+new Date},support:l}),"fu nction"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&>0& in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var
svn commit: r1050995 [7/9] - in /websites/production/openwebbeans/content/meecrowave: ./ assets/css/ assets/plugins/ assets/plugins/elegant_font/css/ assets/plugins/font-awesome/css/ meecrowave-core/
Modified: websites/production/openwebbeans/content/meecrowave/meecrowave-gradle/index.html == --- websites/production/openwebbeans/content/meecrowave/meecrowave-gradle/index.html (original) +++ websites/production/openwebbeans/content/meecrowave/meecrowave-gradle/index.html Thu Oct 3 13:56:35 2019 @@ -18,7 +18,7 @@ - + @@ -66,9 +66,11 @@ - - - buildscript { + + + + +buildscript { repositories { mavenCentral() } @@ -81,16 +83,429 @@ group 'com.app' version '1.0-SNAPSHOT' apply plugin: 'java' -apply plugin: 'org.apache.meecrowave.meecrowave' +apply plugin: 'org.apache.meecrowave' meecrowave { httpPort = 9090 // most of the meecrowave core configuration -} - - - - More coming soon, for now use gradle IDE integration or configuration documentation please. +} + + + + + + + + + +until version 1.2.7 the plugin id was org.apache.microwave.microwave so you had to use apply plugin: 'org.apache.microwave.microwave'. +Alternatively you can use plugin class: apply plugin: org.apache.meecrowave.gradle.MeecrowavePlugin. + + + + + + + +Configuration + + + + + + + + + +Name +Default +Description + + + + +antiResourceLocking +false +Should Tomcat anti resource locking feature be activated on StandardContext. + + +cdiConversation +false +Should CDI conversation be activated + + +clientAuth +- +HTTPS keystore client authentication + + +conf +- +Conf folder to synchronize + + +context + +Default context name + + +cxfServletParams +- +Init parameters passed to CXF servlet + + +defaultSSLHostConfigName +- +The name of the default SSLHostConfig that will be used for secure https connections. + + +deleteBaseOnStartup +true +Should the directory be cleaned on startup if existing + + +dir +- +Root folder if provided otherwise a fake one is created in tmp-dir + + +host +localhost +Default host + + +http2 +false +Activate HTTP 2 + + +httpPort +8080 +HTTP port + + +httpsPort +8443 +HTTPS port + + +initializeClientBus +true +Should the client bus be set. If false the server one will likely be reused. + + +injectServletContainerInitializer +true +Should ServletContainerInitialize support injections. + + +jaxrsAutoActivateBeanValidation +true +Should bean validation be activated on JAX-RS endpoint if present in the classpath. + + +jaxrsDefaultProviders +- +If jaxrsProviderSetup is true the list of default providers to load (or defaulting to johnson jsonb and jsonp ones) + + +jaxrsLogProviders +false +Should JAX-RS providers be logged + + +jaxrsMapping +- +Default jaxrs mapping + + +jaxrsProviderSetup +true +Should default JAX-RS provider be configured + + +jaxwsSupportIfAvailable +true +Should @WebService CDI beans be deployed if cxf-rt-frontend-jaxws is in the classpath. + + +jsonbBinaryStrategy +- +Should JSON-B provider prettify the output + + +jsonbEncoding +UTF-8 +Which encoding provider JSON-B should use + + +jsonbIJson +false +Should JSON-B provider comply to I-JSON + + +jsonbNamingStrategy +- +Should JSON-B provider prettify the output + + +jsonbNulls +false +Should JSON-B provider serialize nulls + + +jsonbOrderStrategy +- +Should JSON-B provider prettify the output + + +jsonbPrettify +false +Should JSON-B provider prettify the output + + +jsonpBufferStrategy +QUEUE +JSON-P JAX-RS provider buffer strategy (see johnzon) + + +jsonpMaxReadBufferLen +65536 +JSON-P JAX-RS provider read buffer limit size (see johnzon) + + +jsonpMaxStringLen +10485760 +JSON-P JAX-RS provider max string limit size (see johnzon) + + +jsonpMaxWriteBufferLen +65536 +JSON-P JAX-RS provider write buffer limit size (see johnzon) + + +jsonpPrettify +false +Should JSON-P JAX-RS provider prettify the outputs (see johnzon) + + +jsonpSupportsComment +false +Should JSON-P JAX-RS provider support comments (see johnzon) + + +keepServerXmlAsThis +false +Dont replace ports in server.xml + + +keyAlias +- +HTTPS keystore alias + + +keystoreFile +- +HTTPS keystore location + + +keystorePass +- +HTTPS keystore password + + +keystoreType +- +HTTPS keystore type + + +loggingGlobalSetup +true +Should logging be configured to use log4j2 (it is global) + + +loginConfig +- +web.xml login config + + +meecrowaveProperties +meecrowave.properties +Loads a meecrowave properties, defaults to meecrowave.properties. + + +properties +- +Passthrough properties + + +quickSession +false +Should an unsecured but fast session id generator be used + + +roles +- +In memory roles + + +scanningExcludes +- +A forced exclude list of jar names (comma separated values) + + +scanningIncludes +- +A forced include list of jar names (comma separated values) + + +scanningPackageExcludes +- +A forced exclude list of packages names (comma separated values) + + +scanningPackageIncludes +- +A forced include list of packages names (comma
svn commit: r1050995 [3/9] - in /websites/production/openwebbeans/content/meecrowave: ./ assets/css/ assets/plugins/ assets/plugins/elegant_font/css/ assets/plugins/font-awesome/css/ meecrowave-core/
Modified: websites/production/openwebbeans/content/meecrowave/components.html == --- websites/production/openwebbeans/content/meecrowave/components.html (original) +++ websites/production/openwebbeans/content/meecrowave/components.html Thu Oct 3 13:56:35 2019 @@ -18,7 +18,7 @@ - + @@ -66,118 +66,125 @@ - - Meecrowave Core - - - Core component is the backbone of Meecrowave. It is based on Tomcat embedded for Servlet container, CXF for JAX-RS, OpenWebBeans for CDI and Log4j2 for the logging. - - - Read about Meecrowave configuration - - - Read about Meecrowave command line - - - - - Meecrowave JPA - - - Meecrowave JPA provides a thin layer on top of JPA to make it easier to use JPA without requiring to use a full container like JavaEE or Spring. It is just a CDI extension. - - - Read More - - - - - Meecrowave Maven - - - Meecrowave provides a Maven plugin to run meecrowave with your preferred build tool. - - - Read More - - - - - Meecrowave Gradle - - - Meecrowave provides a Gradle plugin to run meecrowave with your preferred build tool. - - - Read More - - - - - Meecrowave and the Testing - - - Meecrowave provides two main testing integration: a JUnit one and an Arquillian Container. - - - Read More - - - - - Meecrowave and Monitoring - - - Meecrowave provides few integration for the monitoring: - - - Jolokia (JMX) - - - - - Meecrowave and JTA - - - This is an experimental integration of geronimo-transaction and meecrowave. - - - JTA module - - - - - Meecrowave and OAuth2 - - - This is an experimental module integrating CXF OAuth2 server in Meecrowave through an embeddable dependency or a directly executable jar. - - - OAuth2 module - - - - - Meecrowave Letâs Encrypt - - - This is an experimental module integrating with Letâs Encrypt to provide you free and easy SSL support on your HTTPS connectors. - - - Letâs Encrypt module - - - - - Going further - - - Meecrowave scope is not the full scope of microservices (whatever it means) or at least enterprise needs cause several Apache projects cover part of them in a very good way. - - - See Companion Projects for more information. - - + +Meecrowave Core + + +Core component is the backbone of Meecrowave. It is based on Tomcat embedded for +Servlet container, CXF for JAX-RS, OpenWebBeans for CDI and Log4j2 for the logging. + + +Read about Meecrowave configuration + + +Read about Meecrowave command line + + +Read about Meecrowave and webapp/wars + + + + +Meecrowave JPA + + +Meecrowave JPA provides a thin layer on top of JPA to make it easier to use JPA +without requiring to use a full container like JavaEE or Spring. It is just a +CDI extension. + + +Read More + + + + +Meecrowave Maven + + +Meecrowave provides a Maven plugin to run meecrowave with your preferred build tool. + + +Read More + + + + +Meecrowave Gradle + + +Meecrowave provides a Gradle plugin to run meecrowave with your preferred build tool. + + +Read More + + + + +Meecrowave and the Testing + + +Meecrowave provides two main testing integration: a JUnit one and an Arquillian Container. + + +Read More + + + + +Meecrowave and Monitoring + + +For monitoring, https://microprofile.io/;>Microprofile can be a neat companion of Apache Meecrowave. +You can have a look to http://geronimo.apache.org/microprofile/;>Geronimo implementation. + + + + +Meecrowave and JTA + + +This is an experimental integration of geronimo-transaction and meecrowave. + + +JTA module + + + + +Meecrowave and OAuth2 + + +This is an experimental module integrating CXF OAuth2 server in Meecrowave +through an embeddable dependency or a directly executable jar. + + +OAuth2 module + + + + +Meecrowave Lets Encrypt + + +This is an experimental module integrating with Lets Encrypt to provide you +free and easy SSL support on your HTTPS connectors. + + +Lets Encrypt module + + + + +Going further + + +Meecrowave scope is not the full scope of microservices (whatever it means) or at least enterprise needs +cause several Apache projects cover part of them in a very good way. + + +See Companion Projects for more information. + + @@ -205,8 +212,8 @@ -Copyright 2016 -https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 2016-2019 +http://www.apache.org/;>The Apache Software Foundation. All rights reserved. @@ -221,10 +228,13 @@ - + + + + + - Modified:
svn commit: r1050995 [6/9] - in /websites/production/openwebbeans/content/meecrowave: ./ assets/css/ assets/plugins/ assets/plugins/elegant_font/css/ assets/plugins/font-awesome/css/ meecrowave-core/
Modified: websites/production/openwebbeans/content/meecrowave/meecrowave-core/configuration.html == --- websites/production/openwebbeans/content/meecrowave/meecrowave-core/configuration.html (original) +++ websites/production/openwebbeans/content/meecrowave/meecrowave-core/configuration.html Thu Oct 3 13:56:35 2019 @@ -18,7 +18,7 @@ - + @@ -66,339 +66,359 @@ - - - - Meecrowave configuration is centralized in org.apache.meecrowave.Meecrowave$Builder class. - - - Here are the main properties: - - - - - - - - - Name - Description - - - - - cdiConversation - Should CDI conversation be activated - - - clientAuth - HTTPS keystore client authentication - - - conf - Conf folder to synchronize - - - connectors - Custom connectors - - - cxfServletParams - Init parameters passed to CXF servlet - - - defaultSSLHostConfigName - The name of the default SSLHostConfig that will be used for secure https connections. - - - deleteBaseOnStartup - Should the directory be cleaned on startup if existing - - - dir - Root folder if provided otherwise a fake one is created in tmp-dir - - - host - Default host - - - http2 - Activate HTTP 2 - - - httpPort - HTTP port - - - httpsPort - HTTPS port - - - initializeClientBus - Should the client bus be set. If false the server one will likely be reused. - - - injectServletContainerInitializer - Should ServletContainerInitialize support injections. - - - jaxrsAutoActivateBeanValidation - Should bean validation be activated on JAX-RS endpoint if present in the classpath. - - - jaxrsDefaultProviders - If jaxrsProviderSetup is true the list of default providers to load (or defaulting to johnson jsonb and jsonp ones) - - - jaxrsLogProviders - Should JAX-RS providers be logged - - - jaxrsMapping - Default jaxrs mapping - - - jaxrsProviderSetup - Should default JAX-RS provider be configured - - - jaxwsSupportIfAvailable - Should @WebService CDI beans be deployed if cxf-rt-frontend-jaxws is in the classpath. - - - jsonbBinaryStrategy - Should JSON-B provider prettify the output - - - jsonbEncoding - Which encoding provider JSON-B should use - - - jsonbIJson - Should JSON-B provider comply to I-JSON - - - jsonbNamingStrategy - Should JSON-B provider prettify the output - - - jsonbNulls - Should JSON-B provider serialize nulls - - - jsonbOrderStrategy - Should JSON-B provider prettify the output - - - jsonbPrettify - Should JSON-B provider prettify the output - - - jsonpBufferStrategy - JSON-P JAX-RS provider buffer strategy (see johnzon) - - - jsonpMaxReadBufferLen - JSON-P JAX-RS provider read buffer limit size (see johnzon) - - - jsonpMaxStringLen - JSON-P JAX-RS provider max string limit size (see johnzon) - - - jsonpMaxWriteBufferLen - JSON-P JAX-RS provider write buffer limit size (see johnzon) - - - jsonpPrettify - Should JSON-P JAX-RS provider prettify the outputs (see johnzon) - - - jsonpSupportsComment - Should JSON-P JAX-RS provider support comments (see johnzon) - - - keepServerXmlAsThis - Donât replace ports in server.xml - - - keyAlias - HTTPS keystore alias - - - keystoreFile - HTTPS keystore location - - - keystorePass - HTTPS keystore password - - - keystoreType - HTTPS keystore type - - - loggingGlobalSetup - Should logging be configured to use log4j2 (it is global) - - - loginConfig - web.xml login config - - - meecrowaveProperties - Loads a meecrowave properties, defaults to meecrowave.properties. - - - pidFile - A file path to write the process id if the server starts - - - properties - Passthrough properties - - - quickSession - Should an unsecured but fast session id generator be used - - - realm - realm - - - roles - In memory roles - - - scanningExcludes - A forced exclude list of jar names (comma separated values) - - - scanningIncludes - A forced include list of jar names
svn commit: r1050995 [1/9] - in /websites/production/openwebbeans/content/meecrowave: ./ assets/css/ assets/plugins/ assets/plugins/elegant_font/css/ assets/plugins/font-awesome/css/ meecrowave-core/
Author: rmannibucau Date: Thu Oct 3 13:56:35 2019 New Revision: 1050995 Log: Site checkin for project Meecrowave :: Doc Added: websites/production/openwebbeans/content/meecrowave/howto.html websites/production/openwebbeans/content/meecrowave/meecrowave-core/deploy-webapp.html websites/production/openwebbeans/content/meecrowave/meecrowave-proxy/ websites/production/openwebbeans/content/meecrowave/meecrowave-proxy/index.html Removed: websites/production/openwebbeans/content/meecrowave/meecrowave-core/configuration.pdf websites/production/openwebbeans/content/meecrowave/meecrowave-gradle/index.pdf websites/production/openwebbeans/content/meecrowave/meecrowave-jolokia/ websites/production/openwebbeans/content/meecrowave/meecrowave-jta/index.pdf websites/production/openwebbeans/content/meecrowave/meecrowave-maven/index.pdf websites/production/openwebbeans/content/meecrowave/meecrowave-oauth2/index.pdf websites/production/openwebbeans/content/meecrowave/start.pdf websites/production/openwebbeans/content/meecrowave/testing/index.pdf Modified: websites/production/openwebbeans/content/meecrowave/assets/css/styles.css websites/production/openwebbeans/content/meecrowave/assets/plugins/elegant_font/css/style.css websites/production/openwebbeans/content/meecrowave/assets/plugins/font-awesome/css/font-awesome.min.css websites/production/openwebbeans/content/meecrowave/assets/plugins/jquery-1.12.3.min.js websites/production/openwebbeans/content/meecrowave/community.html websites/production/openwebbeans/content/meecrowave/community.pdf websites/production/openwebbeans/content/meecrowave/companion-projects.html websites/production/openwebbeans/content/meecrowave/companion-projects.pdf websites/production/openwebbeans/content/meecrowave/components.html websites/production/openwebbeans/content/meecrowave/components.pdf websites/production/openwebbeans/content/meecrowave/download.html websites/production/openwebbeans/content/meecrowave/download.pdf websites/production/openwebbeans/content/meecrowave/index.html websites/production/openwebbeans/content/meecrowave/meecrowave-core/cli.html websites/production/openwebbeans/content/meecrowave/meecrowave-core/cli.pdf websites/production/openwebbeans/content/meecrowave/meecrowave-core/configuration.html websites/production/openwebbeans/content/meecrowave/meecrowave-gradle/index.html websites/production/openwebbeans/content/meecrowave/meecrowave-jpa/index.html websites/production/openwebbeans/content/meecrowave/meecrowave-jpa/index.pdf websites/production/openwebbeans/content/meecrowave/meecrowave-jta/index.html websites/production/openwebbeans/content/meecrowave/meecrowave-letsencrypt/index.html websites/production/openwebbeans/content/meecrowave/meecrowave-letsencrypt/index.pdf websites/production/openwebbeans/content/meecrowave/meecrowave-maven/index.html websites/production/openwebbeans/content/meecrowave/meecrowave-oauth2/index.html websites/production/openwebbeans/content/meecrowave/start.html websites/production/openwebbeans/content/meecrowave/testing/index.html Modified: websites/production/openwebbeans/content/meecrowave/assets/css/styles.css == --- websites/production/openwebbeans/content/meecrowave/assets/css/styles.css (original) +++ websites/production/openwebbeans/content/meecrowave/assets/css/styles.css Thu Oct 3 13:56:35 2019 @@ -1260,4 +1260,4 @@ select { pre { padding: 0; -} +} \ No newline at end of file Modified: websites/production/openwebbeans/content/meecrowave/assets/plugins/elegant_font/css/style.css == --- websites/production/openwebbeans/content/meecrowave/assets/plugins/elegant_font/css/style.css (original) +++ websites/production/openwebbeans/content/meecrowave/assets/plugins/elegant_font/css/style.css Thu Oct 3 13:56:35 2019 @@ -1156,4 +1156,4 @@ text-shadow: none; font-size: 2em; } - + \ No newline at end of file Modified: websites/production/openwebbeans/content/meecrowave/assets/plugins/font-awesome/css/font-awesome.min.css == --- websites/production/openwebbeans/content/meecrowave/assets/plugins/font-awesome/css/font-awesome.min.css (original) +++ websites/production/openwebbeans/content/meecrowave/assets/plugins/font-awesome/css/font-awesome.min.css Thu Oct 3 13:56:35 2019 @@ -1,4 +1,4 @@ /*! * Font Awesome 4.6.3 by @davegandy - http://fontawesome.io - @fontawesome * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) - */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.6.3');src:url('../fonts/fontawesome-webfont.eot?#iefix
svn commit: r1050995 [9/9] - in /websites/production/openwebbeans/content/meecrowave: ./ assets/css/ assets/plugins/ assets/plugins/elegant_font/css/ assets/plugins/font-awesome/css/ meecrowave-core/
Modified: websites/production/openwebbeans/content/meecrowave/meecrowave-oauth2/index.html == --- websites/production/openwebbeans/content/meecrowave/meecrowave-oauth2/index.html (original) +++ websites/production/openwebbeans/content/meecrowave/meecrowave-oauth2/index.html Thu Oct 3 13:56:35 2019 @@ -18,7 +18,7 @@ - + @@ -66,310 +66,322 @@ - - - - Starting with version 0.3.0. - - - Coordinates: - - - -dependency + + + +Starting with version 0.3.0. + + +Coordinates: + + + +dependency groupIdorg.apache.meecrowave/groupId artifactIdmeecrowave-oauth2/artifactId version${meecrowave.version}/version -/dependency - - - - A small OAuth2 server based on CXF implementation. - - - See https://cxf.apache.org/docs/jax-rs-oauth2.html; class="bare">https://cxf.apache.org/docs/jax-rs-oauth2.html for more details. - - - Here is the current configuration (mainly based on CXF one): - - - - - - - - - Name - Description - - - - - --oauth2-access-token-lifetime - How long an access token is valid, default to 3600s - - - --oauth2-authorization-code-support - Is authorization code flow supported - - - --oauth2-block-unsecure-requests - Should unsecured requests be blocked - - - --oauth2-client-force - Is a client mandatory or can a token be issued without any client - - - --oauth2-default-scopes - Comma separated list of default scopes - - - --oauth2-encrypted-algorithm - The algorithm for the key for the encrypted provider - - - --oauth2-encrypted-key - The key for encrypted provider - - - --oauth2-invisible-scopes - Comma separated list of invisible to client scopes - - - --oauth2-jcache-config - JCache configuration uri for the cache manager (jcache or provider) - - - --oauth2-jcache-jmx - Should JCache JMX MBeans be enabled - - - --oauth2-jcache-loader - The loader bean or class name - - - --oauth2-jcache-statistics - Should JCache statistics be enabled - - - --oauth2-jcache-store-jwt-token-key-only - Should JCache store jwt token key only (jcache provider) - - - --oauth2-jcache-store-value - Should JCache store value or not - - - --oauth2-jcache-writer - The writer bean or class name - - - --oauth2-jpa-database-driver - JPA database driver for jpa provider - - - --oauth2-jpa-database-password - JPA database password for jpa provider - - - --oauth2-jpa-database-url - JPA database url for jpa provider - - - --oauth2-jpa-database-username - JPA database username for jpa provider - - - --oauth2-jpa-max-active - JPA max active connections for jpa provider - - - --oauth2-jpa-max-idle - JPA max idle connections for jpa provider - - - --oauth2-jpa-max-wait - JPA max wait for connections for jpa provider - - - --oauth2-jpa-properties - JPA persistence unit properties for jpa provider - - - --oauth2-jpa-test-on-borrow - should connections be tested on borrow for jpa provider - - - --oauth2-jpa-test-on-return - should connections be tested on return for jpa provider - - - --oauth2-jpa-validation-interval - validation interval for jpa provider - - - --oauth2-jpa-validation-query - validation query for jpa provider - - - --oauth2-jwt-access-token-claim-map - The jwt claims configuration - - - --oauth2-partial-match-scope-validation - Is partial match for scope validation activated - - - --oauth2-provider - Which provider type to use: jcache[-code], jpa[-code], encrypted[-code] - - - --oauth2-redirection-match-redirect-uri-with-application-uri - For authorization code flow, should redirect uri be matched with application one - - - --oauth2-redirection-max-default-session-interval - For authorization code flow, how long a session can be - - - --oauth2-redirection-scopes-requiring-no-consent - For authorization code flow, the scopes using no consent - - - --oauth2-redirection-use-registered-redirect-uri-if-possible - For authorization code flow, should the registered uri be used - - - --oauth2-refresh-token - Is issuing of access token issuing a refreh token too - - - --oauth2-refresh-token-lifetime - How long
svn commit: r1050995 [8/9] - in /websites/production/openwebbeans/content/meecrowave: ./ assets/css/ assets/plugins/ assets/plugins/elegant_font/css/ assets/plugins/font-awesome/css/ meecrowave-core/
Modified: websites/production/openwebbeans/content/meecrowave/meecrowave-maven/index.html == --- websites/production/openwebbeans/content/meecrowave/meecrowave-maven/index.html (original) +++ websites/production/openwebbeans/content/meecrowave/meecrowave-maven/index.html Thu Oct 3 13:56:35 2019 @@ -18,7 +18,7 @@ - + @@ -66,480 +66,538 @@ - - - - Coordinates: - - - -plugin + + + +Coordinates: + + + +plugin groupIdorg.apache.meecrowave/groupId artifactIdmeecrowave-maven-plugin/artifactId version${meecrowave.version}/version -/plugin - - - - - - - - most of the configuration is inherited from meecrowave-core. - - - - - - Here are the available options (see core configuration for the details): - - - - - - - - - - Name - Default - Property - - - - - cdiConversation - false - ${meecrowave.cdiConversation} - - - clientAuth - - - ${meecrowave.clientAuth} - - - conf - - - ${meecrowave.conf} - - - context - - ${meecrowave.context} - - - defaultSSLHostConfigName - - - ${meecrowave.default-ssl-hostconfig-name} - - - deleteBaseOnStartup - true - ${meecrowave.deleteBaseOnStartup} - - - dir - - - ${meecrowave.dir} - - - forceLog4j2Shutdown - true - ${meecrowave.force-log4j2-shutdown} - - - host - localhost - ${meecrowave.host} - - - http2 - - - ${meecrowave.http2} - - - httpPort - 8080 - ${meecrowave.http} - - - httpsPort - 8443 - ${meecrowave.https} - - - initializeClientBus - true - ${meecrowave.initialiaze-client-bus} - - - injectServletContainerInitializer - true - ${meecrowave.servlet-container-initializer-injections} - - - jaxrsAutoActivateBeanValidation - true - ${meecrowave.jaxrs-beanvalidation} - - - jaxrsDefaultProviders - - - ${meecrowave.jaxrs-default-providers} - - - jaxrsLogProviders - false - ${meecrowave.jaxrsLogProviders} - - - jaxrsMapping - /* - ${meecrowave.jaxrsMapping} - - - jaxrsProviderSetup - true - ${meecrowave.jaxrs-provider-setup} - - - jaxwsSupportIfAvailable - true - ${meecrowave.jaxws-support} - - - jsonbBinaryStrategy - - - ${meecrowave.jsonb-binary-strategy} - - - jsonbEncoding - UTF-8 - ${meecrowave.jsonb-encoding} - - - jsonbIJson - false - ${meecrowave.jsonb-ijson} - - - jsonbNamingStrategy - - - ${meecrowave.jsonb-naming-strategy} - - - jsonbNulls - false - ${meecrowave.jsonb-nulls} - - - jsonbOrderStrategy - - - ${meecrowave.jsonb-order-strategy} - - - jsonbPrettify - false - ${meecrowave.jsonb-prettify} - - - jsonpBufferStrategy - QUEUE - ${meecrowave.jsonp-buffer-strategy} - - - jsonpMaxReadBufferLen - 65536 - ${meecrowave.jsonp-max-read-buffer-size} - - - jsonpMaxStringLen - 10485760 - ${meecrowave.jsonp-max-string-length} - - - jsonpMaxWriteBufferLen - 65536 - ${meecrowave.jsonp-max-write-buffer-size} - - - jsonpPrettify - false - ${meecrowave.jsonp-prettify} - - - jsonpSupportsComment - false - ${meecrowave.jsonp-comments} - - - keepServerXmlAsThis - - - ${meecrowave.keepServerXmlAsThis} - - - keyAlias - - - ${meecrowave.keyAlias} - - - keystoreFile - - - ${meecrowave.keystoreFile} - - - keystorePass - - - ${meecrowave.keystorePass} - - - keystoreType - JKS - ${meecrowave.keystoreType} - - - loggingGlobalSetup - true - ${meecrowave.logging-global-setup} - - - meecrowaveProperties - meecrowave.properties - ${meecrowave.meecrowave-properties} - - - modules - ${project.build.outputDirectory} - - - - project - ${project} - - - - quickSession - true - ${meecrowave.quickSession} - - - scanningExcludes - - - ${meecrowave.scanning-exclude} - - - scanningIncludes - - - ${meecrowave.scanning-include} - - - scanningPackageExcludes - - -
svn commit: r1050995 [5/9] - in /websites/production/openwebbeans/content/meecrowave: ./ assets/css/ assets/plugins/ assets/plugins/elegant_font/css/ assets/plugins/font-awesome/css/ meecrowave-core/
Added: websites/production/openwebbeans/content/meecrowave/howto.html == --- websites/production/openwebbeans/content/meecrowave/howto.html (added) +++ websites/production/openwebbeans/content/meecrowave/howto.html Thu Oct 3 13:56:35 2019 @@ -0,0 +1,466 @@ + + + + + +Meecrowave :: the customizable server + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Meecrowave + + + + + + + + + Howto + + + + + + + + + + + + Download as PDF + + + + + + + +How to create a simple maven project using Meecrowave ? + + +You should add the following dependencies do the dependencies section of your pom.xml (adjust version to current stable version) + + + +dependency +groupIdorg.apache.meecrowave/groupId +artifactIdmeecrowave-specs-api/artifactId +version${meecrowave.version}/version +/dependency +dependency +groupIdorg.apache.meecrowave/groupId +artifactIdmeecrowave-core/artifactId +version${meecrowave.version}/version +/dependency + +!-- if you intend to have unit tests (you really should) -- +dependency +groupIdorg.apache.meecrowave/groupId +artifactIdmeecrowave-junit/artifactId +version${meecrowave.version}/version +scopetest/scope +/dependency + + + +and the following plugin configuration to the build/plugins section of your pom.xml + + + +plugin +!-- +For starting meecrowave via Maven. Just run +$ mvn clean install meecrowave:run +-- +groupIdorg.apache.meecrowave/groupId +artifactIdmeecrowave-maven-plugin/artifactId +version${meecrowave.version}/version +/plugin + + + +Then, you can start your app by running + + + +mvn clean install meecrowave:run + + + + + +How to add a REST Endpoint ? + + +You should declare your endpoint path and verd : + + + +package org.mypackage; + +import javax.enterprise.context.ApplicationScoped; +import javax.ws.rs.GET; +import javax.ws.rs.Path; + +@Path("mypath") +@ApplicationScoped +public class MyEndpoint { + +/** + * Ping / pong rest GET method, to check backend and replies to queries + * + * @return + */ +@Path("/ping") +@GET +public String getPing() { +return "pong"; +} +} + + + + + +How to add a filter (simple case) ? + + +Use standard Servlet 4.0 https://docs.oracle.com/javaee/6/api/javax/servlet/annotation/WebFilter.html;>@WebFilter annotation. A simple example : + + + +package org.mypackage; + +import java.io.IOException; +import javax.servlet.Filter; +import javax.servlet.FilterChain; +import javax.servlet.ServletException; +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; +import javax.servlet.annotation.WebFilter; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +/** + * A simple CORS filter + * + */ +@WebFilter(asyncSupported = true, urlPatterns = {"/*"}) +public class CORSFilter implements Filter { + +/** + * A basic CORS filter, allowing everything + */ +@Override +public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain chain) +throws IOException, ServletException { + +HttpServletRequest request = (HttpServletRequest) servletRequest; + +HttpServletResponse response = (HttpServletResponse) servletResponse; +response.addHeader("Access-Control-Allow-Origin", "*"); +response.addHeader("Access-Control-Allow-Methods","GET, OPTIONS, HEAD, PUT, POST, DELETE"); +response.addHeader("Access-Control-Allow-Headers","*"); + +if (request.getMethod().equals("OPTIONS")) { +// special case of return code for "OPTIONS" query +response.setStatus(HttpServletResponse.SC_ACCEPTED); +return; +} + +// pass the request along the filter chain +chain.doFilter(request, servletResponse); +} +} + + + + + +How to add a servlet ? + + +If your servlet requires no configuration that you would typically put in the web.xml file, you can use the https://docs.oracle.com/javaee/6/api/javax/servlet/annotation/WebServlet.html;>@WebServlet annotation from the Servlet 3.0 specification. + + +If you need to configure the servlet, you should use a https://docs.oracle.com/javaee/6/api/javax/servlet/ServletContainerInitializer.html;>ServletContainerInitializer. + + +If you would have a declaration such as : + + + +servlet +descriptionMy Servlet/description +servlet-nameMyServlet/servlet-name + servlet-classorg.my.servlet.ImplementationClass/servlet-class +init-param +param-nameparam-name/param-name +param-valueMy param value/param-value +/init-param +
svn commit: r1867943 [39/39] - in /johnzon/site/publish: ./ apidocs/ apidocs/org/apache/johnzon/core/ apidocs/org/apache/johnzon/core/class-use/ apidocs/org/apache/johnzon/core/util/ apidocs/org/apach
Modified: johnzon/site/publish/taglist.html URL: http://svn.apache.org/viewvc/johnzon/site/publish/taglist.html?rev=1867943=1867942=1867943=diff == --- johnzon/site/publish/taglist.html (original) +++ johnzon/site/publish/taglist.html Thu Oct 3 13:17:06 2019 @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Johnzon Tag List report @@ -213,10 +213,10 @@ - Last Published: 2019-09-24 + Last Published: 2019-10-03 | - Version: 1.2.1-SNAPSHOT + Version: 1.2.2-SNAPSHOT @@ -473,7 +473,7 @@ NOTE TODO -30 +29 TODO Each tag is detailed below: @@ -498,7 +498,7 @@ 27 TODO -Number of occurrences found in the code: 30 +Number of occurrences found in the code: 29 org.apache.johnzon.core.JsonGeneratorImpl @@ -523,7 +523,7 @@ Line log to adjust size once? -177 +181 org.apache.johnzon.jsonb.DefaultMappingTest Line @@ -543,12 +543,6 @@ move these converters in converter package 427 -org.apache.johnzon.jsonb.JohnzonJsonb -Line - -Optional handling for lists (and arrays)? -52 - org.apache.johnzon.jsonb.JsonbAccessMode Line Modified: johnzon/site/publish/team-list.html URL: http://svn.apache.org/viewvc/johnzon/site/publish/team-list.html?rev=1867943=1867942=1867943=diff == --- johnzon/site/publish/team-list.html (original) +++ johnzon/site/publish/team-list.html Thu Oct 3 13:17:06 2019 @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Johnzon Project Team @@ -213,10 +213,10 @@ - Last Published: 2019-09-24 + Last Published: 2019-10-03 | - Version: 1.2.1-SNAPSHOT + Version: 1.2.2-SNAPSHOT
svn commit: r1867943 [19/39] - in /johnzon/site/publish: ./ apidocs/ apidocs/org/apache/johnzon/core/ apidocs/org/apache/johnzon/core/class-use/ apidocs/org/apache/johnzon/core/util/ apidocs/org/apach
Modified: johnzon/site/publish/dependency-convergence.html URL: http://svn.apache.org/viewvc/johnzon/site/publish/dependency-convergence.html?rev=1867943=1867942=1867943=diff == --- johnzon/site/publish/dependency-convergence.html (original) +++ johnzon/site/publish/dependency-convergence.html Thu Oct 3 13:17:06 2019 @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Johnzon Reactor Dependency Convergence @@ -213,10 +213,10 @@ - Last Published: 2019-09-24 + Last Published: 2019-10-03 | - Version: 1.2.1-SNAPSHOT + Version: 1.2.2-SNAPSHOT @@ -498,19 +498,19 @@ 156 Number of unique artifacts (NOA): -172 +171 Number of version-conflicting artifacts (NOC): 6 Number of SNAPSHOT artifacts (NOS): -1 +0 Convergence (NOD/NOA): -90 % +91 % Ready for release (100% convergence and no SNAPSHOTS): -ErrorYou do not have 100% convergence.You have SNAPSHOT dependencies. +ErrorYou do not have 100% convergence. Dependencies used in modules @@ -524,12 +524,12 @@ 1.1.1 -org.apache.johnzon:johnzon-websocket:bundle:1.2.1-SNAPSHOT\-org.apache.tomee:apache-tomee:zip:webprofile:7.0.3:test\-org.apache.tomee:openejb-core:jar:7.0.3:test\-commons-logging:commons-logging:jar:1.1.1:test +org.apache.johnzon:johnzon-websocket:bundle:1.2.2-SNAPSHOT\-org.apache.tomee:apache-tomee:zip:webprofile:7.0.3:test\-org.apache.tomee:openejb-core:jar:7.0.3:test\-commons-logging:commons-logging:jar:1.1.1:test 1.2 -org.apache.johnzon:johnzon-websocket:bundle:1.2.1-SNAPSHOT\-org.apache.tomee:apache-tomee:zip:webprofile:7.0.3:test\-org.apache.tomee:openejb-core:jar:7.0.3:test\-org.apache.commons:commons-dbcp2:jar:2.1:test\-(commons-logging:commons-logging:jar:1.2:test - omitted for conflict with 1.1.1) +org.apache.johnzon:johnzon-websocket:bundle:1.2.2-SNAPSHOT\-org.apache.tomee:apache-tomee:zip:webprofile:7.0.3:test\-org.apache.tomee:openejb-core:jar:7.0.3:test\-org.apache.commons:commons-dbcp2:jar:2.1:test\-(commons-logging:commons-logging:jar:1.2:test - omitted for conflict with 1.1.1) junit:junit @@ -541,19 +541,19 @@ 3.8.1 -org.apache.johnzon:johnzon-mapper:bundle:1.2.1-SNAPSHOT\-org.apache.openjpa:openjpa:jar:2.4.0:test\-net.sourceforge.serp:serp:jar:1.15.1:test\-(junit:junit:jar:3.8.1:test - omitted for conflict with 4.11) -org.apache.johnzon:johnzon-websocket:bundle:1.2.1-SNAPSHOT\-org.apache.tomee:apache-tomee:zip:webprofile:7.0.3:test\-org.apache.tomee:openejb-core:jar:7.0.3:test\-org.apache.openjpa:openjpa:jar:2.4.2:test\-net.sourceforge.serp:serp:jar:1.15.1:test\-(junit:junit:jar:3.8.1:test - omitted for conflict with 4.12) +org.apache.johnzon:johnzon-mapper:bundle:1.2.2-SNAPSHOT\-org.apache.openjpa:openjpa:jar:2.4.0:test\-net.sourceforge.serp:serp:jar:1.15.1:test\-(junit:junit:jar:3.8.1:test - omitted for conflict with 4.11) +org.apache.johnzon:johnzon-websocket:bundle:1.2.2-SNAPSHOT\-org.apache.tomee:apache-tomee:zip:webprofile:7.0.3:test\-org.apache.tomee:openejb-core:jar:7.0.3:test\-org.apache.openjpa:openjpa:jar:2.4.2:test\-net.sourceforge.serp:serp:jar:1.15.1:test\-(junit:junit:jar:3.8.1:test - omitted for conflict with 4.12) 4.11 -org.apache.johnzon:johnzon-mapper:bundle:1.2.1-SNAPSHOT\-com.github.stefanbirkner:system-rules:jar:1.8.0:test\-(junit:junit:jar:4.11:test - omitted for conflict with 4.12) +org.apache.johnzon:johnzon-mapper:bundle:1.2.2-SNAPSHOT\-com.github.stefanbirkner:system-rules:jar:1.8.0:test\-(junit:junit:jar:4.11:test - omitted for conflict with 4.12) 4.12 -org.apache.johnzon:johnzon-mapper:bundle:1.2.1-SNAPSHOT\-junit:junit:jar:4.12:test -org.apache.johnzon:johnzon-websocket:bundle:1.2.1-SNAPSHOT\-junit:junit:jar:4.12:test +org.apache.johnzon:johnzon-mapper:bundle:1.2.2-SNAPSHOT\-junit:junit:jar:4.12:test +org.apache.johnzon:johnzon-websocket:bundle:1.2.2-SNAPSHOT\-junit:junit:jar:4.12:test org.apache.maven:maven-artifact @@ -565,14 +565,14 @@ 3.0 -org.apache.johnzon:apache-johnzon:jar:1.2.1-SNAPSHOT\-org.apache.johnzon:johnzon-maven-plugin:jar:1.2.1-SNAPSHOT:compile\-org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.4:compile\-(org.apache.maven:maven-artifact:jar:3.0:compile - omitted for conflict with 3.0.5) -org.apache.johnzon:johnzon-maven-plugin:maven-plugin:1.2.1-SNAPSHOT\-org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.4:compile\-(org.apache.maven:maven-artifact:jar:3.0:compile - omitted for conflict with 3.0.5)
svn commit: r1867943 [3/39] - in /johnzon/site/publish: ./ apidocs/ apidocs/org/apache/johnzon/core/ apidocs/org/apache/johnzon/core/class-use/ apidocs/org/apache/johnzon/core/util/ apidocs/org/apache
Modified: johnzon/site/publish/apidocs/org/apache/johnzon/core/BufferStrategyFactory.html URL: http://svn.apache.org/viewvc/johnzon/site/publish/apidocs/org/apache/johnzon/core/BufferStrategyFactory.html?rev=1867943=1867942=1867943=diff == --- johnzon/site/publish/apidocs/org/apache/johnzon/core/BufferStrategyFactory.html (original) +++ johnzon/site/publish/apidocs/org/apache/johnzon/core/BufferStrategyFactory.html Thu Oct 3 13:17:06 2019 @@ -4,7 +4,7 @@ -BufferStrategyFactory (Apache Johnzon 1.2.1-SNAPSHOT API) +BufferStrategyFactory (Apache Johnzon 1.2.2-SNAPSHOT API) @@ -12,7 +12,7 @@ -CommentsJsonStreamParserImpl (Apache Johnzon 1.2.1-SNAPSHOT API) +CommentsJsonStreamParserImpl (Apache Johnzon 1.2.2-SNAPSHOT API)