News
Weld Tip 1 - Logging
Contents Motivation Under the hood Set the log level and use categories to filter messages Monitoring bootstrap Registered beans Actions performed by extensions This is the first article from a series of short articles covering some useful Weld features. In this article we talk about logging. The topics for the next articles include: DEVELOPMENT MODE, PERFORMANCE, NON-EE ENVIRONMENTS and TESTING. Motivation Logging is usually no fancy stuff. But very often it’s the...
Read more »Weld 2.4.0.Final
I am very pleased to announce the first stable version of Weld 2.4 (CDI 1.2). See also the release details. From now on, 2.4 is the current stable version of Weld and 2.3 is not actively developed anymore. Thanks to everyone involved in this release! Most of the new features were already introduced in First release candidate of Weld 2.4. To sum it up: Removed dependency on com.google.guava...
Read more »First release candidate of Weld 2.4
Contents Removed dependency on com.google.guava:guava Enhanced version of javax.enterprise.inject.Instance Veto AnnotatedType not annotated with bean defining annotation @ActivateRequestScope moved to Weld API Improved rolling upgrades support Events - reflect the output of CDI-494 Probe - allow to filter unused beans Cleanup Initial Java 9 support Bugs WildFly Patch I am pleased to announce the first release candidate of Weld 2.4 (CDI 1.2). See also the release details. Thanks...
Read more »Arquillian container Weld 2.0.0.Beta1 released!
We are pleased to announce a release of embedded Arquillian container adapter for Weld. This container has deserved some love for really long time. We tried to refactor it and introduced new master branch which now corresponds to the 2.0.0.x version stream. The original master was branched in 1.0. There is no more any arquillian-weld-ee-embedded-1.1 or arquillian-weld-se-embedded. It’s squashed to one...
Read more »Weld 2.3.5.Final
The next version of the stable 2.3 branch has been released! See also the release details. Thanks to everyone involved in this release! We plan to create the 2.4 branch of Weld within a few weeks. Weld 2.4 will remain a CDI 1.2 implementation. We would like to do some cleanup (e.g. remove deprecated classes from Weld SE), enhance the API and also add some new features. See also the...
Read more »Update on weld-vertx
This is a follow-up on the article Weld meets Vert.x. Weld team has just released the first alpha version of weld-vertx (artifacts are available in Maven Central). Since the last time we talked about weld-vertx two new features were added. First, it’s possible to inject the relevant io.vertx.core.Vertx and io.vertx.core.Context instances direcly into beans. Also there is a new module called weld-vertx...
Read more »Programmatic lookup improvements
javax.enterprise.inject.Instance is sometimes invaluable companion. For example, Instance allows you to handle unsatisfied and ambiguous dependencies gracefully. E.g. it’s possible to avoid unnecessary deployment problems: interface OrderProcessor { void process(Order order); int getPriority(); } class OrderService { @Inject Instance<OrderProcessor> instance; void create(Order order) { if (!instance.isUnsatisfied() && !instance.isAmbiguous()) { instance.get().process(order); } else { // Log a warning or throw an exception } } } It is less known that...
Read more »Weld 3.0.0.Alpha16
The next experimental Weld version has been released! See also the release details. Thanks to everyone involved in this release! This release includes a lot of bugfixes and improvements (e.g. all the notable tasks implemented in the latest stable version: Weld 2.3.4.Final). However, the main goal of this release is to align with CDI API 2.0.Alpha4, and in particular to implement the current version of "metadata builders" API (CDI...
Read more »Weld 2.3.4.Final
Weld 2.3.4.Final the next version of the stable 2.3 branch has been released! See also the release details. Thanks to everyone involved in this release! Notable bugfixes and improvements: log important actions performed by extensions (WELD-2134) for example, if you want to track down all extensions modifying AnnotatedType definitions, then enable the debug logging for Weld and look for messages containing ProcessAnnotatedType.setAnnotatedType() called by … Conversations - allow to...
Read more »Weld meets Vert.x
Vert.x defines itself as "a toolkit for building reactive applications on the JVM". Sounds cool and trendy. Weld, on the other hand, comes from the Java EE world, based on standards and traditional concepts. But wait, what if we try to combine the two worlds to get the best of them? Vert.x makes use of a light-weight distributed messaging system to allow application components to communicate in a loosely coupled way. This...
Read more »