On 14 Nov 2008, at 17:14, Nicklas Karlsson wrote:
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?
I think we need one, if Gavin says yes to the above point.
* Calling a bean destroy method manually does nothing extra from
lifecycle point of view?
Can you elaborate.
* 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?
I would do a
NormalContext::remove(Bean<?> bean, Object instance);
* Can a bean be removed from a context that is not currently active?
---
Nik
_______________________________________________
webbeans-dev mailing list
webbeans-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/webbeans-dev