Contract for objects that can be pooled by an ObjectPool
.
Poolable objects must provide a no-arg constructor which is used by the pool to construct new, unused objects.
To be more convenient to use, poolable objects should implement their constructor in a way that it either can be called with no arguments (used by the pool) or with the same signature as their #init method (to be used by applications).
Event | Description |
---|