]
Lukas Jungmann closed JBIDE-8716.
---------------------------------
v. M2
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
Labels: new_and_noteworthy
Fix For: 3.3.0.M1
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 of
{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/defaultbe... for
details.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: