/** * Destroys the {@link Cache} bean on Spring container shutdown. * * @throws Exception if an error occurs while closing the cache. * @see org.springframework.beans.factory.DisposableBean#destroy() * @see #destroyBeanFactoryLocator() * @see #close(GemFireCache) * @see #isClose() */ @Override public void destroy() throws Exception { if (isClose()) { close(fetchCache()); destroyBeanFactoryLocator(); } }
/** * Destroys the {@link Cache} bean on Spring container shutdown. * * @throws Exception if an error occurs while closing the cache. * @see org.springframework.beans.factory.DisposableBean#destroy() * @see #destroyBeanFactoryLocator() * @see #close(GemFireCache) * @see #isClose() */ @Override public void destroy() throws Exception { if (isClose()) { close(fetchCache()); destroyBeanFactoryLocator(); } }