[JBoss JIRA] Created: (CDI-170) Either ditch or fix @New
by Mark Struberg (JIRA)
Either ditch or fix @New
------------------------
Key: CDI-170
URL: https://issues.jboss.org/browse/CDI-170
Project: CDI Specification Issues
Issue Type: Bug
Components: Concepts, Contexts
Affects Versions: 1.0
Reporter: Mark Struberg
Fix For: TBD
The specification of @New is currently not really usable. It is really only for creating injected but unmanaged and unintercepted instances of a class. But this usecase is weird and imo just not needed. If the class under construction is an 'old' Pojo (without @Inject, etc) then it doesn't need to get managed. And it also doesn't provide any benefit over just using new Pojo();
Also you cannot @New classes which don't have a default ct.
I just found no sane scenario where we cannot use a producer method instead.
Can we simply deprecate @New?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 6 months
[JBoss JIRA] Created: (CDI-147) Are EJB's not deployed in a bean archive eligible for CDI injection
by Stuart Douglas (JIRA)
Are EJB's not deployed in a bean archive eligible for CDI injection
-------------------------------------------------------------------
Key: CDI-147
URL: https://issues.jboss.org/browse/CDI-147
Project: CDI Specification Issues
Issue Type: Clarification
Reporter: Stuart Douglas
If an EJB is deployed in an ejb-jar without a beans.xml, is this EJB eligible for CDI injection of beans deployed in other modules?
The spec says:
"The container performs dependency injection on all session and message-driven bean instances, even those which are not
contextual instances."
To me this sounds like the intent was to allow injection into EJB's looked up from JNDI, does this also mean that EJB's in non bean archives should also be injected?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 6 months
[JBoss JIRA] Created: (CDI-103) Support client controlled contexts
by Pete Muir (JIRA)
Support client controlled contexts
----------------------------------
Key: CDI-103
URL: https://issues.jboss.org/browse/CDI-103
Project: CDI Specification Issues
Issue Type: Feature Request
Reporter: Pete Muir
In a client controlled context, the client controls via some identifier (probably an identifier, but we should allow the context to inspect the injection point) which contextual instances it sees for a particular bean type. For example given:
{code}
@MyScope
class Foo {
String name;
}
{code}
and a context which uses annotations to differentiate between contextual instance, these two injection points would see different instances:
{code}
@Inject @Bar Foo barFoo;
@Inject @Baz Foo bazFoo;
{code}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 6 months
[JBoss JIRA] Created: (CDI-160) Split specification into "core" and "Java EE integration"
by Pete Muir (JIRA)
Split specification into "core" and "Java EE integration"
---------------------------------------------------------
Key: CDI-160
URL: https://issues.jboss.org/browse/CDI-160
Project: CDI Specification Issues
Issue Type: Feature Request
Affects Versions: 1.1 (Proposed)
Reporter: Pete Muir
Assignee: Pete Muir
Priority: Critical
In order to better support implementations of CDI such as Weld SE and OpenWebBeans which are currently not certifiable by JSR-299 (as they don't implement any of the Java EE integrations) we should split the spec into core and Java EE integrations, and offer two modes within the TCK as well.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 6 months