[
https://issues.jboss.org/browse/CDI-45?page=com.atlassian.jira.plugin.sys...
]
Martin Kouba edited comment on CDI-45 at 9/8/15 5:25 AM:
---------------------------------------------------------
I don't really see any benefit from introducing any additional interface, aside from
performance. And some performance issues may be partially solved by implementation.
+1 for introducing a new convenient method {{Instance.isResolvable()}} (or any other
better name).
was (Author: mkouba):
I don't really see any benefit from introducing any additional interface, aside from
performance. And some performance issues may be partially solved by implementation.
+1 for introducing a new convenient method {{Instance.isResolved()}} (or any other better
name).
Optional Injection Points
-------------------------
Key: CDI-45
URL:
https://issues.jboss.org/browse/CDI-45
Project: CDI Specification Issues
Issue Type: Feature Request
Components: Resolution
Affects Versions: 1.0
Reporter: Stuart Douglas
Fix For: 2.0 (discussion)
There are occoasions where it may be useful for some injection points to be optional,
e.g.
@Inject
@Optional
MyBean bean;
This would behave the same as a normal injection point, however it will not cause the
deployment to fail if it is not satisified.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)