JdbcExpertConfigFile 类中的实现
public FilePool getPool() {
if (!isInit)
synchronized (this) {
if (!isInit)
initFilePool();
}
if (pool == null) {
if (log.isWarnEnabled())
log.warnf("NutDao FilePool create fail!! Blob and Clob Support is DISABLE!!");
throw new DaoException("NutDao FilePool create fail!! Blob and Clob Support is DISABLE!!");
}
return pool;
}
个人感觉还是加个对象锁好一些,欢迎拍砖