ro.isdc.wro.extensions.processor.support
Class ObjectPoolHelper<T>
java.lang.Object
ro.isdc.wro.extensions.processor.support.ObjectPoolHelper<T>
public class ObjectPoolHelper<T>
- extends Object
A generic aware object pool wrapper. Probably not the best name, but it can be changed later. It helps you to avoid
the cast and hides the exception handling by throwing RuntimeException when borrowing or returning object to
the pool fails.
- Since:
- 1.4.2
- Author:
- Alex Objelean
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectPoolHelper
public ObjectPoolHelper(ObjectFactory<T> objectFactory)
getObject
public T getObject()
returnObject
public void returnObject(T engine)
Copyright © 2008-2012. All Rights Reserved.