📄 basepoolableobjectfactorysample.java
字号:
/**
* 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++);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -