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

Jozef Hartinger (JIRA) jira-events at lists.jboss.org
Tue Oct 2 16:08:03 EDT 2012

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

Jozef Hartinger commented on CDI-21:

You can observe BeforeBeanDiscovery and initialize the extension in the observer method.
> 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: TBD
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

More information about the cdi-dev mailing list