Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The basic idea is to use out-of-the-box CDI concepts to customize CODI as well as to provide custom type-safe config implementations (if it is possible). That works in combination with OpenWebBeans (OWB) and with the first versions of Weld. To keep it short: it doesn't work with the newest versions of Weldversions between 1.1.0 and 1.1.3-SP1 of Weld (WELD-912 fixes it again). Therefore, it was required to introduce a custom concept. Even though the implementation for OWB (only) would be possible without a custom concept, you can use this optional concept for both CDI implementations. However, if you are using OWB you just need this information if you would like to use the alternative-config modules provided by CODI. In this case you just have to add the JARs to your project and you can use the alternative config e.g. based on a resource bundle.

...

If you would like to customize CODI in combination with Weld you just need the alternative-implementation module. If you are using OWB, you don't need this module only for this use-case (use @Specializes or @Alternative or @Specializes provided by CDI).

If you would like to use one or more of the alternative config modules provided by CODI you need the config module as well as the alternative-implementation module. With OWB and Weld v1.1.3-SP1+ you could also skip the modules described in this page and implement your own alternative configuration concept based on @Alternative or @Specializes provided by CDI.

...