/wro4j-extensions/src/main/java/ro/isdc/wro/extensions/processor/support/ObjectPoolHelper.java
notNull( engine) ;notNull( objectFactory) ;
notNull ( objectFactory ) ;
private static final Logger LOG = LoggerFactory.getLogger(ObjectPoolHelper.class); private static final int MAX_IDLE = 5; private static final long MAX_WAIT = 10L * DateUtils.MILLIS_PER_SECOND; private static final long EVICTABLE_IDLE_TIME = 30L * DateUtils.MILLIS_PER_SECOND; private GenericObjectPool<T> objectPool; public ObjectPoolHelper(final ObjectFactory<T> objectFactory) { <extra_id_0> objectPool = createObjectPool(objectFactory); notNull(objectPool); } private GenericObjectPool<T> createObjectPool(final ObjectFactory<T> objectFactory) { final GenericObjectPool<T> pool = newObjectPool(objectFactory); notNull(pool);