[jsr-314-open-mirror] [jsr-314-open] [2.0RevA-C071] none scoped beansand at PostConstruct

Ed Burns edward.burns at oracle.com
Thu Jun 10 15:45:04 EDT 2010


>>>>> On Fri, 28 May 2010 09:49:51 -0400, Simon Lessard <simon_lessard at dmr.ca> said:

SL> Re: [jsr-314-open] [2.0RevA-C071] none scoped beansand at PostConstruct
SL>  Hi all,

SL> I thought a bit more about this, and while I still think @PostConstruct
SL> should be called for none scoped bean, I think we should document
SL> @PreDestroy better as we won't have many way to call the annotated method
SL> for none scoped bean. Of course, the managed bean engine could be made very
SL> intelligent and know in what context the none scoped bean is getting used.
SL> If injected into another bean, it could add the none scoped bean in an
SL> hidden map in the same scope to detect destruction, but if the none scoped
SL> bean is used directly, which is rare but possible, then I cannot think of
SL> any way to enforce @PreDestroy.

Thanks to all four of your for replying.  I agree that should clean up
the language to not exclude none scoped beans.

Ed

-- 
| edburns at oracle.com | office: +1 407 458 0017
| homepage:          | http://ridingthecrest.com/
| 21 Work Days Til JSF 2.1 Milestone 1



More information about the jsr-314-open-mirror mailing list