[webbeans-dev] Re: What contexts are active during @Dispose and @PreDestroy?

Gavin King gavin.king at gmail.com
Sat May 30 23:30:21 EDT 2009


OK, this is what I think the spec should say about this. See 6.7.2-6.7.4.

On Sat, May 30, 2009 at 6:46 PM, Gavin King <gavin.king at gmail.com> wrote:
> I think we need to say explicitly in the spec what contexts are
> available during @Dispose and @PreDestroy.
>
> At minimum:
>
> * the @Dependent scope is active
> * the application context is active unless the bean being destroyed
> has scope @ApplicationScoped
>
> I think we should also require that:
>
> * the session context is active when @ConversationScoped or
> @RequestScoped beans are being destroyed
> * the conversation context is active when @RequestScoped beans are
> being destroyed
>
>
> --
> Gavin King
> gavin.king at gmail.com
> http://in.relation.to/Bloggers/Gavin
> http://hibernate.org
> http://seamframework.org
>



-- 
Gavin King
gavin.king at gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: JSR-299-20090530.pdf
Type: application/pdf
Size: 568558 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/weld-dev/attachments/20090530/497371ca/attachment.pdf 


More information about the weld-dev mailing list