Destroy the bean and all other beans associated with its {@link AsyncCreationalContext}. Because some destruction activity may be asynchronous, this method accepts a second parameter as a callback to be notified when the destruction of all the beans has been done.
@param ref the reference to the bean to be destroyed.
@param runnable a runnable callback to be called when all the beans have been destroyed.
Destroy the given bean instance (usually a prototype instance obtained from this factory) according to its bean definition.
Any exception that arises during destruction should be caught and logged instead of propagated to the caller of this method.
@param beanName the name of the bean definition
@param beanInstance the bean instance to destroy
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.