|
From: Michael Y. <yo...@gm...> - 2007-02-04 06:06:48
|
1. Would DisposableBeanAdapter and ServletRequestAttributes.DestructionCallbackBindingListener not being Serializable cause any problems? Since it would not survive the session being persisted or being distributed in a cluster? The BeanPostProcessors would need to be Serializable but the programmer would probably have more control over that. What do you think? 2. When a scope is registered it registers a DisposableBeanAdapter as a destruction callback. The Scope.remove method is called by AbstractBeanFactory.destroyScopedBean which in ture calls destroyBean with calls destroy on a DisposableBeanAdapter. So is it part of the contract for Scope.remove to not call the destroy callback? Mike |