public void dispose() { // look for pluggable handlers for (GeoServerLifecycleHandler handler : GeoServerExtensions.extensions(GeoServerLifecycleHandler.class)) { try { handler.onDispose(); } catch (Throwable t) { LOGGER.log( Level.SEVERE, "A GeoServer lifecycle handler threw an exception during dispose", t); } } // internal cleanup if (catalog != null) catalog.dispose(); if (facade != null) facade.dispose(); }
public void reset() { // drop all the catalog store/feature types/raster caches catalog.getResourcePool().dispose(); // reset the referencing subsystem CRS.reset("all"); // look for pluggable handlers for (GeoServerLifecycleHandler handler : GeoServerExtensions.extensions(GeoServerLifecycleHandler.class)) { try { handler.onReset(); } catch (Throwable t) { LOGGER.log( Level.SEVERE, "A GeoServer lifecycle handler threw an exception during reset", t); } } } }
for (GeoServerLifecycleHandler handler : handlers) { try { handler.beforeReload(); } catch (Throwable t) { LOGGER.log( handler.onReload(); } catch (Throwable t) { LOGGER.log(