[cdi-dev] [JBoss JIRA] (CDI-21) Support PostConstruct callbacks in Extension class

Martin Kouba (JIRA) issues at jboss.org
Tue Sep 8 05:05:00 EDT 2015

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

Martin Kouba commented on CDI-21:

+1 for BeforeBeanDiscovery. Only a CDI container is allowed to fire container lifecycle events (see also 10.2.1. The Event interface) and so it is safe to assume the event will only be delivered once.

> Support PostConstruct callbacks in Extension class
> --------------------------------------------------
>                 Key: CDI-21
>                 URL: https://issues.jboss.org/browse/CDI-21
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>          Components: Portable Extensions
>    Affects Versions: 1.0
>            Reporter: Sivakumar Thyagarajan
>            Priority: Minor
>             Fix For: 2.0 (discussion)
> It is sometimes useful to get to know after a portable extension class has been instantiated, so that the state of the Extension could be initialized [ie not establishing state in the constructor and having it called twice when the Extension is proxied]. Though the 1.0 specification does not require this, it would be useful to support @PostConstruct callback on Extension class in the next version of the specification.
> Please see https://jira.jboss.org/browse/WELD-713 for additional information on this issue.

This message was sent by Atlassian JIRA

More information about the cdi-dev mailing list