?? basepoolableobjectfactorysample.java
字號(hào):
/**
* Title : Base Dict Class
* Description : here Description is the function of class, here maybe multirows
* @author kevin
* @Version 1.0
*/
package pool;
import org.apache.commons.pool.BasePoolableObjectFactory;
/**
* Class description goes here.
* @version 1.0 2005-12-5
* @author kevin
*/
public class BasePoolableObjectFactorySample extends BasePoolableObjectFactory
{
/**
* @see org.apache.commons.pool.PoolableObjectFactory#makeObject()
*/
private int counter = 0;
public Object makeObject() throws Exception {
return String.valueOf(counter++);
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -