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

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


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



More information about the weld-dev mailing list