/** * Hook to cleanup various stuff of some used libraries (org.geotools), which depend on the * external client to call them for cleaning-up. */ private void cleanupWebapp() { LOG.info("Web application shutdown: cleaning various stuff"); WeakCollectionCleaner.DEFAULT.exit(); DeferredAuthorityFactory.exit(); }
DeferredAuthorityFactory.exit(); CRS.reset("all"); LOGGER.info("Shut down GT referencing threads ");
@Override public void destroy() { if (this.crsAuthority == null) { return; } if (this.crsAuthority instanceof DeferredAuthorityFactory) { DeferredAuthorityFactory.exit(); } if (this.crsAuthority instanceof AbstractAuthorityFactory) { try { ((AbstractAuthorityFactory) this.crsAuthority).dispose(); } catch (FactoryException fe) { LOGGER.error("Error while GeometryHandler clean up", fe); } } /* * close {@link WeakCollectionCleaner} * * Note: Not required if * se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor is * defined in the web.xml */ // WeakCollectionCleaner.DEFAULT.exit(); }