[weld-issues] [JBoss JIRA] Resolved: (WELDX-169) Alternatives not working with Generic Beans

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Tue Oct 12 04:20:39 EDT 2010


     [ https://jira.jboss.org/browse/WELDX-169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart Douglas resolved WELDX-169.
----------------------------------

    Resolution: Done


http://github.com/weld/extensions/pull/20

> Alternatives not working with Generic Beans
> -------------------------------------------
>
>                 Key: WELDX-169
>                 URL: https://jira.jboss.org/browse/WELDX-169
>             Project: Weld Extensions
>          Issue Type: Bug
>          Components: Generic Beans
>            Reporter: Pete Muir
>             Fix For: 1.0.0.Beta1
>
>
> Given a definition like:
>    @Produces
>    @JCloudsBlobStore(provider = "transient", container = CONTAINER)
>    @TestContainer
>    @RequestScoped
>    @Alternative
>    public Properties getS3TestContainerProperties(@Resource("aws.properties") Properties awsProperties)
>    {
>       return awsProperties;
>    }
> Then all producer methods / fields on the generic bean set should be made alternatives. Furthermore, need to ensure that getBeanClass() is correctly altered to point to the class declaring the above, not the generic managed bean (so that alternatives are correctly enabled).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list