An implementation of the IObjectPoolFactory that invokes the default constructor of the pooled object type.
sealed class
|
DefaultObjectPoolFactory
|
with
|
<T>
|
as
|
new, class
|
extends
|
ObjectPoolFactory<T>
|
Singleton instance of DefaultObjectPoolFactory.
public
static
readonly
field
|
Instance
|
||
type
|
IObjectPoolFactory<T>
|
The given object is no longer pooled and must be deleted
public
virtual
method
|
Delete
([Owner]
T obj)
|
||
params
|
obj
|
[not-null]
|
The object. |
inherited
|
ObjectPoolFactory.Delete
|
Creates a new pooled object.
[OwnerReturn]
|
||||
public
override
method
|
New
()
|
|||
type
|
T
|
|||
returns
|
|
The newly created object. | ||
implements
|
ObjectPoolFactory.New
|
A pooled object is about to be returned to the pool.
public
virtual
method
|
Return
(T obj)
|
||
params
|
obj
|
[not-null]
|
The object that is returned to the pool. |
inherited
|
ObjectPoolFactory.Return
|
A pooled object is about to be used again.
public
virtual
method
|
Use
(T obj)
|
||
params
|
obj
|
[not-null]
|
The object that is used again. |
inherited
|
ObjectPoolFactory.Use
|