public void destroy() throws Exception { // dispose geoserver.dispose(); } }
protected void destroyGeoServer() { if (applicationContext == null) { return; } getGeoServer().dispose(); try { // dispose WFS XSD schema's - they will otherwise keep geoserver instance alive // forever!! disposeIfExists(getXSD11()); disposeIfExists(getXSD10()); // kill the context applicationContext.destroy(); // kill static caches GeoServerExtensionsHelper.init(null); } finally { applicationContext = null; } }