/**
* This method is invoked during view destroy by {@link ViewScopeEventListener}, in that case destroy all beans in
* current active view scope.
*/
public void preDestroyView() {
BeanStorage storage = activeViewScopes.remove(getBeanStorageId(false));
if (storage != null) {
storage.destroyBeans();
}
}