⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jahiawebapplistener.java

📁 java 写的一个新闻发布系统
💻 JAVA
字号:
package org.jahia.bin;import javax.servlet.http.*;import org.jahia.utils.JahiaConsole;import org.jahia.registries.*;import org.jahia.services.applications.*;/** * This class is used to implements listeners to the servlet containers events. * * <p>Copyright: Copyright (c) 2002</p> * <p>Company: Jahia Inc.</p> * @author Serge Huber * @version 3.0 */public class JahiaWebAppListener implements HttpSessionListener {    public JahiaWebAppListener() {    }    /**     * Notification that a session was created.     * @param se the notification event     */    public void sessionCreated(HttpSessionEvent se) {        JahiaConsole.println("JahiaWebAppListener.sessionCreated",                             "Session " + se.getSession().getId() +                             " was just created...");    }    /**     * Notification that a session was destroyed.     * @param se the notification event     */    public void sessionDestroyed(HttpSessionEvent se) {        JahiaConsole.println("JahiaWebAppListener.sessionDestroyed",                             "Session " + se.getSession().getId() +                             " was just destroyed... purging session related data... ");        ServicesRegistry servReg = ServicesRegistry.getInstance();        if (servReg != null) {            JahiaApplicationsDispatchingService dispatchingService = servReg.getJahiaApplicationsDispatchingService();            if (dispatchingService != null) {                dispatchingService.flushAllSessionsCaches (se.getSession());            }        }    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -