[cdi-dev] [JBoss JIRA] (CDI-99) Obtain Extension instances from BeanManager

Mark Struberg (Commented) (JIRA) jira-events at lists.jboss.org
Mon Nov 28 06:10:40 EST 2011


    [ https://issues.jboss.org/browse/CDI-99?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645914#comment-12645914 ] 

Mark Struberg commented on CDI-99:
----------------------------------

while chatting with jozef and ales, we had the following idea:

What about just allowing to inject Extensions at bootup (as we already do with BeanManager)?

public doThaTrick(@Observes BeforeBeanDiscovery bbd, MyOtherExtension otherExtension) {...};

or even:

public doThaTrick(@Observes BeforeBeanDiscovery bbd, Instance<Extension> allExtensions) {...};

We would need to clarify 6.7.3 that Extensions, BeanManager, Event, ...(what else being @ApplicationScoped and available at bootup?) must be available for injection into SystemEvent methods.

                
> Obtain Extension instances from BeanManager
> -------------------------------------------
>
>                 Key: CDI-99
>                 URL: https://issues.jboss.org/browse/CDI-99
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>          Components: Portable Extensions
>    Affects Versions: 1.0
>            Reporter: Pete Muir
>            Assignee: Pete Muir
>             Fix For: 1.1.EDR2
>
>


--
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

        


More information about the cdi-dev mailing list