|
|
@ -221,7 +221,16 @@ public abstract class FactoryBeanRegistrySupport extends DefaultSingletonBeanReg |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns the security context for this bean factory. If a security manager |
|
|
|
* Overridden to clear the FactoryBean object cache as well. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void destroySingletons() { |
|
|
|
|
|
|
|
super.destroySingletons(); |
|
|
|
|
|
|
|
this.factoryBeanObjectCache.clear(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Return the security context for this bean factory. If a security manager |
|
|
|
* is set, interaction with the user code will be executed using the privileged |
|
|
|
* is set, interaction with the user code will be executed using the privileged |
|
|
|
* of the security context returned by this method. |
|
|
|
* of the security context returned by this method. |
|
|
|
* @see AccessController#getContext() |
|
|
|
* @see AccessController#getContext() |
|
|
|