Marek Smigielski created SOLDER-327:
---------------------------------------
Summary: BeanBuilder readFromType method should use
annotatedType.getTypeClosure() instead of building set of types
Key: SOLDER-327
URL:
https://issues.jboss.org/browse/SOLDER-327
Project: Solder
Issue Type: Feature Request
Reporter: Marek Smigielski
When you create class which is supertype of another one:
ElementDao extends AbstractDao<Element>
and use ServiceHandlerExtension to convert this class to bean, than you can't inject
bean based on its typed superclass:
@Inject
AbstractDao<Element> dao;
only direct injection works:
@Inject
ElementDao dao;
It would be better to read types from annotatedType.getTypeClosure() instead of building
set of types in beanBuilder.readFromType method.
--
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