📄 jkfserver.java
字号:
/**
* $Log: JKFServer.java,v $
* Revision 1.1 2003/01/16 13:08:09 mwulff
* initial version
*
* Revision 1.6 2002/12/20 18:49:12 mwulff
* no message
*
* Revision 1.5 2002/12/14 22:41:33 mwulff
* no message
*
* Revision 1.4 2002/12/01 21:36:27 mwulff
* accomodated to ServerResourceManager and ServerLoggingManager,
* that are now implemented as singleton
*
* Revision 1.3 2002/11/30 11:52:11 mwulff
* no message
*
* Revision 1.2 2002/11/17 17:46:57 mwulff
* JKFBroker is now responsible for first initialising the logging system and
* then causes ServerResourceManager to load all needed resources
*
* Revision 1.1 2002/11/07 16:23:55 mwulff
* initial version
*
*/
package de.fhm.jkf.resource.sv;
import javax.servlet.ServletConfig;
/**
* @author marten wulff
*
* <br><br><center><table border="1" width="80%"><hr>
* <strong><a href="http://jkf.sourceforge.net">The JKF Project</a></strong>
* <p>
* Copyright (C) 2002 by Marten Wulff
* <p>
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* <p>
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* <p>
* You should have received a copy of the <a href="http://www.gnu.org/copyleft/lesser.html">
* GNU Lesser General Public License</a> along with this library; if not, write to
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
* <hr></table></center>
*/
public class JKFServer {
private static ServerLoggingManager logManager = ServerLoggingManager.instance();
private static ServerResourceManager resManager = ServerResourceManager.instance();
/**
* Constructor for JKFBroker.
*/
private JKFServer() {
super();
}
public static synchronized void configure(ServletConfig servletConf) {
// configure the jkf server logging
logManager.setLogConfPath(servletConf.getInitParameter("serverLogConf"));
logManager.configure();
// load all needed jkf resources
resManager.setConfFile(servletConf.getInitParameter("serverConf"));
resManager.loadResources();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -