IT-KIMI_SHI\SINOIT.KIMI
2018-06-01 521993214708c66a5498bd669c94a661c11484b2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package frame.server;
 
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
 
import org.apache.log4j.PropertyConfigurator;
 
import frame.config.Configer;
 
public class ContextListener implements ServletContextListener {
 
    public ContextListener() {
 
    }
 
    public void contextInitialized(ServletContextEvent event) {
        Configer.init(event.getServletContext());
        PropertyConfigurator.configure(Configer.getPath_LoggerConfig());
        ServerInstance.startService();
    }
 
    public void contextDestroyed(ServletContextEvent arg0) {
        ServerInstance.stopService();
    }
 
}