/** * Shuts down all repositories (through Provider instances) and clears all mappings. * * @deprecated since 4.5 - use {@link info.magnolia.repository.RepositoryManager#shutdown()} directly. */ public static void shutdown() { Components.getComponent(RepositoryManager.class).shutdown(); }
public void unload() { // See comment in GuiceServletContextListener if (main != null) { Components.setComponentProvider(main.getParent()); main.destroy(); } Components.getComponent(RepositoryManager.class).shutdown(); }
@Override @After public void tearDown() throws Exception { super.tearDown(); repoMan.shutdown(); }
repositoryManager.shutdown(); if (true)
protected void shutdownRepository(boolean cleanup) throws IOException { if (this.isQuiet()) { setLoggerLevel("info.magnolia", WARN); } MgnlContext.release(); Components.getComponent(SystemContext.class).release(); Components.getComponent(RepositoryManager.class).shutdown(); if (cleanup) { cleanUp(); } // Call #reconfigure to properly cancel Configurator#setLevel // * this created a new Logger entry in in-memory config // * otherwise changing root logger level afterwards has no effect on info.magnolia.foo LoggerContext.getContext(false).reconfigure(); }