[openwebbeans] branch master updated: [OWB-1365] enforce to create interceptor stack if validation is skipped
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 e3315a6 [OWB-1365] enforce to create interceptor stack if validation is skipped e3315a6 is described below commit e3315a66ce71bf6fdbdac82566c97dc2bb7951d4 Author: Romain Manni-Bucau AuthorDate: Mon Jan 4 08:03:59 2021 +0100 [OWB-1365] enforce to create interceptor stack if validation is skipped --- .../org/apache/webbeans/config/BeansDeployer.java | 45 ++ .../webbeans/test/config/BeansDeployerTest.java| 25 +++- 2 files changed, 69 insertions(+), 1 deletion(-) diff --git a/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java b/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java index 5eaf2c3..576335f 100644 --- a/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java +++ b/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java @@ -331,6 +331,51 @@ public class BeansDeployer validateNames(); } +else +{ + webBeansContext.getBeanManagerImpl().getBeans().forEach(bean -> { +if (BuiltInOwbBean.class.isInstance(bean)) +{ +Class proxyable = BuiltInOwbBean.class.cast(bean).proxyableType(); +if (proxyable != null) +{ +AbstractProducer producer = AbstractProducer.class.cast(OwbBean.class.cast(bean).getProducer()); +AnnotatedType annotatedType = webBeansContext.getAnnotatedElementFactory() +.newAnnotatedType(proxyable); +producer.defineInterceptorStack(bean, annotatedType, webBeansContext); +} +} +else if (bean instanceof OwbBean && +!(bean instanceof Interceptor) && +!(bean instanceof Decorator)) +{ +AbstractProducer producer = null; +OwbBean owbBean = (OwbBean) bean; +if (ManagedBean.class.isInstance(bean)) // in this case don't use producer which can be wrapped +{ +producer = ManagedBean.class.cast(bean).getOriginalInjectionTarget(); +} +if (producer == null && owbBean.getProducer() instanceof AbstractProducer) +{ +producer = (AbstractProducer) owbBean.getProducer(); +} +if (producer != null) +{ +AnnotatedType annotatedType; +if (owbBean instanceof InjectionTargetBean) +{ +annotatedType = ((InjectionTargetBean) owbBean).getAnnotatedType(); +} +else +{ +annotatedType = webBeansContext.getAnnotatedElementFactory() + .newAnnotatedType(owbBean.getReturnType()); +} +producer.defineInterceptorStack(owbBean, annotatedType, webBeansContext); +} +} +}); +} if (webBeansContext.getNotificationManager().getObserverMethods().stream() .anyMatch(ObserverMethod::isAsync)) diff --git a/webbeans-impl/src/test/java/org/apache/webbeans/test/config/BeansDeployerTest.java b/webbeans-impl/src/test/java/org/apache/webbeans/test/config/BeansDeployerTest.java index eae8d86..f0b6b49 100644 --- a/webbeans-impl/src/test/java/org/apache/webbeans/test/config/BeansDeployerTest.java +++ b/webbeans-impl/src/test/java/org/apache/webbeans/test/config/BeansDeployerTest.java @@ -18,6 +18,7 @@ */ package org.apache.webbeans.test.config; +import static java.util.Arrays.asList; import static java.util.Collections.singletonList; import static java.util.logging.Level.FINE; import static org.junit.Assert.assertEquals; @@ -32,6 +33,7 @@ import java.util.logging.LogRecord; import java.util.logging.Logger; import javax.annotation.Priority; +import javax.enterprise.context.ApplicationScoped; import javax.interceptor.AroundInvoke; import javax.interceptor.Interceptor; import
svn commit: r45160 - in /dev/openwebbeans/owb: openwebbeans-2.0.21-source-release.zip openwebbeans-2.0.21-source-release.zip.asc openwebbeans-2.0.21-source-release.zip.sha512
Author: rmannibucau Date: Sun Jan 3 19:53:23 2021 New Revision: 45160 Log: OWB 2.0.21 vote artifacts Added: dev/openwebbeans/owb/openwebbeans-2.0.21-source-release.zip (with props) dev/openwebbeans/owb/openwebbeans-2.0.21-source-release.zip.asc dev/openwebbeans/owb/openwebbeans-2.0.21-source-release.zip.sha512 Added: dev/openwebbeans/owb/openwebbeans-2.0.21-source-release.zip == Binary file - no diff available. Propchange: dev/openwebbeans/owb/openwebbeans-2.0.21-source-release.zip -- svn:mime-type = application/octet-stream Added: dev/openwebbeans/owb/openwebbeans-2.0.21-source-release.zip.asc == --- dev/openwebbeans/owb/openwebbeans-2.0.21-source-release.zip.asc (added) +++ dev/openwebbeans/owb/openwebbeans-2.0.21-source-release.zip.asc Sun Jan 3 19:53:23 2021 @@ -0,0 +1,11 @@ +-BEGIN PGP SIGNATURE- + +iQEzBAABCgAdFiEEz4CgVaKtKOnvv5QqcxKfWN5h7L0FAl/yHiAACgkQcxKfWN5h +7L3kaQf+P/n/hkDsfeSGTLJgc70MV/jeZekbb9upRg+T+d66B/BwjAjnOvw2Bq5q +UNAEMRZ+64kL21IeQlLghsgLNvktaGEHbo5gt/urClIP+6zvWIPF84N1MIjlzAwQ +1DzsQZAM8cV0aa6EZ/3zaOG0E3UTapF32j67nF8C/MqgJInrGFpbfvBXpnZToaDk +3qX+MRGDhWVXQr1XaramZWBXAEf8e5Fs8O8Z0mO0mm1tZH0y9eAl3N4hLGwMg471 +Dv2g5aoFYQR7FwKFxf761QDKzQRfyG/PtMa0B9FUkSurgSX2O8NxObeb3RycH6Bv +wmHMpW0OacdmVnIaF5ACQTEkIawkzg== +=/GWM +-END PGP SIGNATURE- Added: dev/openwebbeans/owb/openwebbeans-2.0.21-source-release.zip.sha512 == --- dev/openwebbeans/owb/openwebbeans-2.0.21-source-release.zip.sha512 (added) +++ dev/openwebbeans/owb/openwebbeans-2.0.21-source-release.zip.sha512 Sun Jan 3 19:53:23 2021 @@ -0,0 +1 @@ +69152984e407879afdadb90893ebd8737eeb8a461dd09ae1c279966d457a97970c8fe7bd3c35e015970db016b80dfe0113e9725d62f11c272ce565e0dd278363 openwebbeans-2.0.21-source-release.zip
[openwebbeans] 02/02: [maven-release-plugin] prepare for next development iteration
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 commit a3c6d4ea73828768312c941bda45bf1c85802550 Author: Romain Manni-Bucau AuthorDate: Sun Jan 3 20:42:17 2021 +0100 [maven-release-plugin] prepare for next development iteration --- atinject-tck/pom.xml | 2 +- distribution/pom.xml | 2 +- pom.xml | 4 ++-- samples/conversation-sample/pom.xml | 2 +- samples/guess/pom.xml | 2 +- samples/jsf2sample/pom.xml| 2 +- samples/pom.xml | 2 +- samples/reservation/pom.xml | 2 +- samples/standalone-sample/pom.xml | 2 +- samples/tomcat7-sample/pom.xml| 2 +- webbeans-arquillian/owb-arquillian-standalone/pom.xml | 2 +- webbeans-arquillian/pom.xml | 2 +- webbeans-ee-common/pom.xml| 2 +- webbeans-ee/pom.xml | 2 +- webbeans-ejb/pom.xml | 2 +- webbeans-el22/pom.xml | 2 +- webbeans-gradle/pom.xml | 2 +- webbeans-impl/pom.xml | 2 +- webbeans-jetty9/pom.xml | 2 +- webbeans-jms/pom.xml | 2 +- webbeans-jsf/pom.xml | 2 +- webbeans-junit5/pom.xml | 2 +- webbeans-osgi/pom.xml | 2 +- webbeans-porting/pom.xml | 2 +- webbeans-resource/pom.xml | 2 +- webbeans-se/pom.xml | 2 +- webbeans-slf4j/pom.xml| 2 +- webbeans-spi/pom.xml | 2 +- webbeans-tck-jakarta/pom.xml | 2 +- webbeans-tck/pom.xml | 2 +- webbeans-tomcat7/pom.xml | 2 +- webbeans-web/pom.xml | 2 +- 32 files changed, 33 insertions(+), 33 deletions(-) diff --git a/atinject-tck/pom.xml b/atinject-tck/pom.xml index da07c90..d2bd0cd 100644 --- a/atinject-tck/pom.xml +++ b/atinject-tck/pom.xml @@ -23,7 +23,7 @@ org.apache.openwebbeans openwebbeans -2.0.21 +2.0.22-SNAPSHOT ../pom.xml diff --git a/distribution/pom.xml b/distribution/pom.xml index 9763374..6ddb4ed 100644 --- a/distribution/pom.xml +++ b/distribution/pom.xml @@ -24,7 +24,7 @@ org.apache.openwebbeans openwebbeans -2.0.21 +2.0.22-SNAPSHOT ../pom.xml diff --git a/pom.xml b/pom.xml index b9969a8..ad188d5 100644 --- a/pom.xml +++ b/pom.xml @@ -29,7 +29,7 @@ openwebbeans Apache OpenWebBeans pom -2.0.21 +2.0.22-SNAPSHOT openwebbeans.apache.org @@ -49,7 +49,7 @@ scm:git:https://gitbox.apache.org/repos/asf/openwebbeans.git scm:git:https://gitbox.apache.org/repos/asf/openwebbeans.git https://github.com/apache/openwebbeans - openwebbeans-2.0.21 + openwebbeans-2.0.19 diff --git a/samples/conversation-sample/pom.xml b/samples/conversation-sample/pom.xml index 4d1ad71..343f336 100644 --- a/samples/conversation-sample/pom.xml +++ b/samples/conversation-sample/pom.xml @@ -23,7 +23,7 @@ under the License. samples org.apache.openwebbeans -2.0.21 +2.0.22-SNAPSHOT ../pom.xml diff --git a/samples/guess/pom.xml b/samples/guess/pom.xml index 1a16c87..dbc0c3b 100644 --- a/samples/guess/pom.xml +++ b/samples/guess/pom.xml @@ -21,7 +21,7 @@ under the License. org.apache.openwebbeans samples -2.0.21 +2.0.22-SNAPSHOT ../pom.xml diff --git a/samples/jsf2sample/pom.xml b/samples/jsf2sample/pom.xml index 329187d..743eee8 100644 --- a/samples/jsf2sample/pom.xml +++ b/samples/jsf2sample/pom.xml @@ -22,7 +22,7 @@ under the License. samples org.apache.openwebbeans -2.0.21 +2.0.22-SNAPSHOT ../pom.xml diff --git a/samples/pom.xml b/samples/pom.xml index 1cf61cb..e802f95 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -22,7 +22,7 @@ under the License. org.apache.openwebbeans openwebbeans -2.0.21 +2.0.22-SNAPSHOT ../pom.xml diff --git a/samples/reservation/pom.xml b/samples/reservation/pom.xml index 3359fe8..41a24a2 100644 --- a/samples/reservation/pom.xml +++ b/samples/reservation/pom.xml @@ -21,7 +21,7 @@ under the License.
[openwebbeans] 01/02: [maven-release-plugin] prepare release openwebbeans-2.0.21
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 commit cb11ec2cb48443220ef8b04c633073b7f7c88916 Author: Romain Manni-Bucau AuthorDate: Sun Jan 3 20:42:16 2021 +0100 [maven-release-plugin] prepare release openwebbeans-2.0.21 --- atinject-tck/pom.xml | 2 +- distribution/pom.xml | 2 +- pom.xml | 4 ++-- samples/conversation-sample/pom.xml | 2 +- samples/guess/pom.xml | 2 +- samples/jsf2sample/pom.xml| 2 +- samples/pom.xml | 2 +- samples/reservation/pom.xml | 2 +- samples/standalone-sample/pom.xml | 2 +- samples/tomcat7-sample/pom.xml| 2 +- webbeans-arquillian/owb-arquillian-standalone/pom.xml | 2 +- webbeans-arquillian/pom.xml | 2 +- webbeans-ee-common/pom.xml| 2 +- webbeans-ee/pom.xml | 2 +- webbeans-ejb/pom.xml | 2 +- webbeans-el22/pom.xml | 2 +- webbeans-gradle/pom.xml | 2 +- webbeans-impl/pom.xml | 2 +- webbeans-jetty9/pom.xml | 2 +- webbeans-jms/pom.xml | 2 +- webbeans-jsf/pom.xml | 2 +- webbeans-junit5/pom.xml | 2 +- webbeans-osgi/pom.xml | 2 +- webbeans-porting/pom.xml | 2 +- webbeans-resource/pom.xml | 2 +- webbeans-se/pom.xml | 2 +- webbeans-slf4j/pom.xml| 2 +- webbeans-spi/pom.xml | 2 +- webbeans-tck-jakarta/pom.xml | 2 +- webbeans-tck/pom.xml | 2 +- webbeans-tomcat7/pom.xml | 2 +- webbeans-web/pom.xml | 2 +- 32 files changed, 33 insertions(+), 33 deletions(-) diff --git a/atinject-tck/pom.xml b/atinject-tck/pom.xml index 6394d25..da07c90 100644 --- a/atinject-tck/pom.xml +++ b/atinject-tck/pom.xml @@ -23,7 +23,7 @@ org.apache.openwebbeans openwebbeans -2.0.21-SNAPSHOT +2.0.21 ../pom.xml diff --git a/distribution/pom.xml b/distribution/pom.xml index 08de508..9763374 100644 --- a/distribution/pom.xml +++ b/distribution/pom.xml @@ -24,7 +24,7 @@ org.apache.openwebbeans openwebbeans -2.0.21-SNAPSHOT +2.0.21 ../pom.xml diff --git a/pom.xml b/pom.xml index 3d672d1..b9969a8 100644 --- a/pom.xml +++ b/pom.xml @@ -29,7 +29,7 @@ openwebbeans Apache OpenWebBeans pom -2.0.21-SNAPSHOT +2.0.21 openwebbeans.apache.org @@ -49,7 +49,7 @@ scm:git:https://gitbox.apache.org/repos/asf/openwebbeans.git scm:git:https://gitbox.apache.org/repos/asf/openwebbeans.git https://github.com/apache/openwebbeans - openwebbeans-2.0.19 + openwebbeans-2.0.21 diff --git a/samples/conversation-sample/pom.xml b/samples/conversation-sample/pom.xml index e792886..4d1ad71 100644 --- a/samples/conversation-sample/pom.xml +++ b/samples/conversation-sample/pom.xml @@ -23,7 +23,7 @@ under the License. samples org.apache.openwebbeans -2.0.21-SNAPSHOT +2.0.21 ../pom.xml diff --git a/samples/guess/pom.xml b/samples/guess/pom.xml index 54e53f4..1a16c87 100644 --- a/samples/guess/pom.xml +++ b/samples/guess/pom.xml @@ -21,7 +21,7 @@ under the License. org.apache.openwebbeans samples -2.0.21-SNAPSHOT +2.0.21 ../pom.xml diff --git a/samples/jsf2sample/pom.xml b/samples/jsf2sample/pom.xml index 156db25..329187d 100644 --- a/samples/jsf2sample/pom.xml +++ b/samples/jsf2sample/pom.xml @@ -22,7 +22,7 @@ under the License. samples org.apache.openwebbeans -2.0.21-SNAPSHOT +2.0.21 ../pom.xml diff --git a/samples/pom.xml b/samples/pom.xml index 9b52aba..1cf61cb 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -22,7 +22,7 @@ under the License. org.apache.openwebbeans openwebbeans -2.0.21-SNAPSHOT +2.0.21 ../pom.xml diff --git a/samples/reservation/pom.xml b/samples/reservation/pom.xml index e3af672..3359fe8 100644 --- a/samples/reservation/pom.xml +++ b/samples/reservation/pom.xml @@ -21,7 +21,7 @@ under the License.
[openwebbeans] annotated tag openwebbeans-2.0.21 created (now c56c54d)
This is an automated email from the ASF dual-hosted git repository. rmannibucau pushed a change to annotated tag openwebbeans-2.0.21 in repository https://gitbox.apache.org/repos/asf/openwebbeans.git. at c56c54d (tag) tagging cb11ec2cb48443220ef8b04c633073b7f7c88916 (commit) replaces openwebbeans-2.0.20 by Romain Manni-Bucau on Sun Jan 3 20:42:16 2021 +0100 - Log - [maven-release-plugin] copy for tag openwebbeans-2.0.21 --- This annotated tag includes the following new commits: new cb11ec2 [maven-release-plugin] prepare release openwebbeans-2.0.21 The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference.
[openwebbeans] branch master updated (42a9bb7 -> a3c6d4e)
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/openwebbeans.git. from 42a9bb7 better casting for some jvm v8 new cb11ec2 [maven-release-plugin] prepare release openwebbeans-2.0.21 new a3c6d4e [maven-release-plugin] prepare for next development iteration The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: atinject-tck/pom.xml | 2 +- distribution/pom.xml | 2 +- pom.xml | 2 +- samples/conversation-sample/pom.xml | 2 +- samples/guess/pom.xml | 2 +- samples/jsf2sample/pom.xml| 2 +- samples/pom.xml | 2 +- samples/reservation/pom.xml | 2 +- samples/standalone-sample/pom.xml | 2 +- samples/tomcat7-sample/pom.xml| 2 +- webbeans-arquillian/owb-arquillian-standalone/pom.xml | 2 +- webbeans-arquillian/pom.xml | 2 +- webbeans-ee-common/pom.xml| 2 +- webbeans-ee/pom.xml | 2 +- webbeans-ejb/pom.xml | 2 +- webbeans-el22/pom.xml | 2 +- webbeans-gradle/pom.xml | 2 +- webbeans-impl/pom.xml | 2 +- webbeans-jetty9/pom.xml | 2 +- webbeans-jms/pom.xml | 2 +- webbeans-jsf/pom.xml | 2 +- webbeans-junit5/pom.xml | 2 +- webbeans-osgi/pom.xml | 2 +- webbeans-porting/pom.xml | 2 +- webbeans-resource/pom.xml | 2 +- webbeans-se/pom.xml | 2 +- webbeans-slf4j/pom.xml| 2 +- webbeans-spi/pom.xml | 2 +- webbeans-tck-jakarta/pom.xml | 2 +- webbeans-tck/pom.xml | 2 +- webbeans-tomcat7/pom.xml | 2 +- webbeans-web/pom.xml | 2 +- 32 files changed, 32 insertions(+), 32 deletions(-)
[openwebbeans] branch master updated: better casting for some jvm v8
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 42a9bb7 better casting for some jvm v8 42a9bb7 is described below commit 42a9bb73acb79e712ca09db89830921eb1de171d Author: Romain Manni-Bucau AuthorDate: Sun Jan 3 20:38:24 2021 +0100 better casting for some jvm v8 --- .../src/main/java/org/apache/openwebbeans/se/OWBInitializer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webbeans-se/src/main/java/org/apache/openwebbeans/se/OWBInitializer.java b/webbeans-se/src/main/java/org/apache/openwebbeans/se/OWBInitializer.java index 5a35d44..8d969a4 100644 --- a/webbeans-se/src/main/java/org/apache/openwebbeans/se/OWBInitializer.java +++ b/webbeans-se/src/main/java/org/apache/openwebbeans/se/OWBInitializer.java @@ -246,7 +246,8 @@ public class OWBInitializer extends SeContainerInitializer selectAlternativeStereotypes(list(value, this::loadClass).toArray(Class[]::new)); break; case "openwebbeans.extensions": -addExtensions(list(value, this::loadClass).toArray(Class[]::new)); +final Class[] extensions = list(value, this::loadClass).toArray(Class[]::new); +addExtensions(extensions); break; case "openwebbeans.packages": addPackages(list(value, this::loadPackage).toArray(Package[]::new));
svn commit: r1069741 - in /websites: production/openwebbeans/content/index.html staging/openwebbeans/trunk/content/index.html
Author: buildbot Date: Sun Jan 3 10:35:06 2021 New Revision: 1069741 Log: Dynamic update by buildbot for openwebbeans Modified: websites/production/openwebbeans/content/index.html websites/staging/openwebbeans/trunk/content/index.html Modified: websites/production/openwebbeans/content/index.html == (empty) Modified: websites/staging/openwebbeans/trunk/content/index.html == (empty)