[webbeans-dev] Bean removal

Nicklas Karlsson nickarls at gmail.com
Fri Nov 14 02:14:24 EST 2008


Some question on bean removal / contexts:

* 8.2 says destroying a context calls all Bean.destroy methods. Is it
implied that they are also removed from the context?
Or are the bean instances just flagged "destroyed"?

* How is a bean removed from a context manually? Currently, there is
no API on ManagerImp/NormalContext for this, should there be?

* Calling a bean destroy method manually does nothing extra from
lifecycle point of view?

* Calling an EJB remove method triggers the (currently non-existent)
remove method on the Manager impl which then calls the destroy method
and removes the bean from the context (with the currently
non-existent) Context impl remove method?

* Can a bean be removed from a context that is not currently active?

---
Nik



More information about the weld-dev mailing list