com.jmex.pool
Class ByteArraySpatialGenerator<T>

java.lang.Object
  extended by com.jmex.pool.ByteArraySpatialGenerator<T>
All Implemented Interfaces:
ObjectGenerator<T>

public class ByteArraySpatialGenerator<T>
extends java.lang.Object
implements ObjectGenerator<T>

Author:
Matthew D. Hicks

Constructor Summary
ByteArraySpatialGenerator(byte[] bytes)
           
 
Method Summary
 void disable(T t)
          This method is invoked when this object is being returned to the pool.
 void enable(T t)
          This method is invoked when this object is being enabled for use out of the pool.
 T newInstance()
          Creates and returns a new instance of T
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArraySpatialGenerator

public ByteArraySpatialGenerator(byte[] bytes)
Method Detail

newInstance

public T newInstance()
Description copied from interface: ObjectGenerator
Creates and returns a new instance of T

Specified by:
newInstance in interface ObjectGenerator<T>
Returns:
T

enable

public void enable(T t)
Description copied from interface: ObjectGenerator
This method is invoked when this object is being enabled for use out of the pool.

Specified by:
enable in interface ObjectGenerator<T>

disable

public void disable(T t)
Description copied from interface: ObjectGenerator
This method is invoked when this object is being returned to the pool.

Specified by:
disable in interface ObjectGenerator<T>