/* (non-Javadoc) * @see org.dspace.kernel.CommonLifecycle#stop() */ public void stop() { if (!running) { // log.warn("Kernel ("+this+") is already stopped"); return; } synchronized (lock) { // DSpace.initialize(null); // clear out the static cover // wipe all the variables to free everything up running = false; kernel = null; if (serviceManagerSystem != null) { serviceManagerSystem.shutdown(); } serviceManagerSystem = null; configurationService = null; } // log completion (logger may be gone at this point so we cannot really use it) log.info("DSpace kernel shutdown completed and unregistered MBean: " + mBeanName); }