singletonreleaser.java

来自「JSP实现的在线网络购物系统JAVA程序源码,」· Java 代码 · 共 18 行

JAVA
18
字号
package com.comm;

import javax.servlet.*;

import org.apache.commons.discovery.tools.*;

public class SingletonReleaser implements
        ServletContextListener {
    //Notification that the web module is ready to process requests
    public void contextInitialized(ServletContextEvent sce) {}

    //Notification that the servlet context is about to be shut down
    public void contextDestroyed(ServletContextEvent sce) {
        System.out.print("DiscoverSingleton.release()");
        DiscoverSingleton.release();
    }
}

⌨️ 快捷键说明

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