org.apache.commons.ognl
Class ObjectArrayPool

java.lang.Object
  extended by org.apache.commons.ognl.ObjectArrayPool

Deprecated. object-pooling now relies on the jvm garbage collection

public final class ObjectArrayPool
extends Object

This class was previously intended to produce performance improvement.
This hand-made object pooling is now a bottleneck under high load.
We now rely on the new jvm garbage collection improvements to handle object allocation efficiently.


Constructor Summary
ObjectArrayPool()
          Deprecated.  
 
Method Summary
 Object[] create(int arraySize)
          Deprecated.  
 Object[] create(Object singleton)
          Deprecated.  
 Object[] create(Object object1, Object object2)
          Deprecated.  
 Object[] create(Object object1, Object object2, Object object3)
          Deprecated.  
 Object[] create(Object object1, Object object2, Object object3, Object object4)
          Deprecated.  
 Object[] create(Object object1, Object object2, Object object3, Object object4, Object object5)
          Deprecated.  
 void recycle(Object[] value)
          Deprecated. object-pooling now relies on the jvm garbage collection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectArrayPool

public ObjectArrayPool()
Deprecated. 
Method Detail

create

public Object[] create(int arraySize)
Deprecated. 

create

public Object[] create(Object singleton)
Deprecated. 

create

public Object[] create(Object object1,
                       Object object2)
Deprecated. 

create

public Object[] create(Object object1,
                       Object object2,
                       Object object3)
Deprecated. 

create

public Object[] create(Object object1,
                       Object object2,
                       Object object3,
                       Object object4)
Deprecated. 

create

public Object[] create(Object object1,
                       Object object2,
                       Object object3,
                       Object object4,
                       Object object5)
Deprecated. 

recycle

public void recycle(Object[] value)
Deprecated. object-pooling now relies on the jvm garbage collection



Copyright © 1997-2013 The Apache Software Foundation. All Rights Reserved.