/** Shutdown subsystems */ public static void shutdown() { if (!initialized) return; synchronized (initLock) { JenaSystem.forEachReverse(JenaSubsystemLifecycle::stop); initialized = false; } }
/** Shutdown subsystems */ public static void shutdown() { if (!initialized) { logLifecycle("JenaSystem.shutdown - not initialized"); return; } synchronized (initLock) { if (!initialized) { logLifecycle("JenaSystem.shutdown - return"); return; } logLifecycle("JenaSystem.shutdown - start"); JenaSystem.forEachReverse( module -> { logLifecycle("Stop: %s", module.getClass().getSimpleName()); module.stop(); }); initialized = false; logLifecycle("JenaSystem.shutdown - finish"); } }