[
https://issues.apache.org/jira/browse/OWB-655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13234928#comment-13234928
]
Eric Covener commented on OWB-655:
--
We wouldn't inject an abstract class, we'd include the abstract class in the
list of bean types of the EJB with a no-interface view.
When someone requested a java type with that abstract class, and this was the
only bean with that type, we'd find our way to this enterprise bean ask the
container for an EJB and inject [a proxy to] that.
CDI doesn´t inject stateless EJB by abstract class.
---
Key: OWB-655
URL: https://issues.apache.org/jira/browse/OWB-655
Project: OpenWebBeans
Issue Type: Bug
Components: Enterprise Web Beans
Affects Versions: 1.1.3
Reporter: Rogerio Baldini
Assignee: Gurkan Erdogdu
I have these classes:
public abstract class PlcBaseDAO {}
public abstract class PlcBaseJpaDAO extends PlcBaseDAO {}
@Stateless
public class AppJpaDAO extends PlcBaseJpaDAO {}
And this injection doesn´t work.
@Named
public class AppCDI {
@Inject
private PlcBaseDAO baseDao;
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira