connectionhandlerpool.java

来自「一个java的LDAP服务器」· Java 代码 · 共 42 行

JAVA
42
字号
package org.javaldap.server;/** * Insert the type's description here. * Creation date: (6/10/2000 12:16:26 PM) * @author: Administrator */class ConnectionHandlerPool extends org.javaldap.server.util.ObjectPool {    private static ConnectionHandlerPool chp = null;    /**     * ConnectionHandlerPool constructor comment.     */    private ConnectionHandlerPool() {        super();    }    /**     * create method comment.     */    public Object create() throws Exception {        return new ConnectionHandler();    }    /**     * expire method comment.     */    public void expire(Object o) {    }    public static ConnectionHandlerPool getInstance() {        if (chp == null) {            chp = new ConnectionHandlerPool();        }        return chp;    }    /**     * validate method comment.     */    public boolean validate(Object o) {        return false;    }}

⌨️ 快捷键说明

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