[
https://issues.jboss.org/browse/WELD-960?page=com.atlassian.jira.plugin.s...
]
Ales Justin resolved WELD-960.
------------------------------
Resolution: Rejected
With CDI (or Weld in particular), where it's all-or-nothing, this is too custom
feature.
Atm it is rejected, perhaps try with CDI 1.1.
e.g. you can always implement this logic on your own, specially since you're creating
your own boot == re-create bootstrap until all plugins are good / ok.
Provide a "Partial failure" bootstrap mode in Weld SE
-----------------------------------------------------
Key: WELD-960
URL:
https://issues.jboss.org/browse/WELD-960
Project: Weld
Issue Type: Feature Request
Components: Bootstrap and Metamodel API, Java SE Support
Affects Versions: 1.1.2.Final
Environment: JBoss Modules
Reporter: Lincoln Baxter III
When booting weld, in the case of Seam Forge, a single bad plugin (beans archive) on the
classpath, will cause boostrap to fail, and the entire system exits with failure.
What is desired is a "partial-failure" mode, where beans archives that fail to
load can be "veto'd" or "excluded" from the live system, with a
chance to print a friendly error message or take some kind of action on that failure,
while all remaining "good" plugins/beans archives continue to load and boot as
normal.
The only difference at runtime is that no beans from the failed archives are made
available (of course, if this caused failure in an upstream beans archive, the system
would have to fail that archive as well,) but in any case, if the beans archives that
failed were "standalone" and did not break all archives' bean graphs, it
should be possible to proceed to boot.
This would make error recovery in Forge much easier to handle, and also open up some
interesting possibilities for other modular plugin-systems.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira