[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-8716) Support @DefaultBean
Alexey Kazakov (JIRA)
jira-events at lists.jboss.org
Mon Apr 11 20:06:33 EDT 2011
Support @DefaultBean
--------------------
Key: JBIDE-8716
URL: https://issues.jboss.org/browse/JBIDE-8716
Project: Tools (JBoss Tools)
Issue Type: Sub-task
Components: cdi (jsr-299)
Reporter: Alexey Kazakov
Assignee: Viacheslav Kabanovich
Fix For: 3.3.x
If a default bean is installed and no other bean with the same type and qualifiers are installed, then the default bean should be used. But if there is some bean with the same type and qualifiers then we should ignore the default one when we resolve injection points.
For instance we have two beans. One is annotated @DefaultBean and another one is a usual bean.
So, IBeanManager.getBeans(true, injectionPoint) should return the usual bean but IBeanManager.getBeans(false, injectionPoint) should return both beans.
Be aware that
{quote}
Any producer methods or producer fields declared on a default managed bean are automatically registered as default producers, with Method.getGenericReturnType() or Field.getGenericType() determining the type of the default producer. The default producer type can be overridden by specifying @DefaultBean on the producer method or field.
{quote}
See http://docs.jboss.org/seam/3/solder/latest/reference/en-US/html/defaultbeans.html for details.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list