com.jmex.pool
Interface ObjectGenerator<T>

All Known Implementing Classes:
ByteArraySpatialGenerator

public interface ObjectGenerator<T>

Author:
Matthew D. Hicks

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
 

Method Detail

newInstance

T newInstance()
Creates and returns a new instance of T

Returns:
T
Throws:
java.lang.Exception

enable

void enable(T t)
This method is invoked when this object is being enabled for use out of the pool.

Parameters:
t -

disable

void disable(T t)
This method is invoked when this object is being returned to the pool.

Parameters:
t -